  nolist
; Base branch table equate file
;SYMBOLIC_DEBUG_START
_LdHLInd		equ 4000h
_CpHLDE		equ 4003h
_DivHLby10		equ 4006h
_DivHLByA		equ 4009h
_kbdScan		equ 400Ch
_GetCSC		equ 400Fh
_coorMon		equ 4012h
_Mon		       equ 4015h
_monForceKey		equ 4018h
_sendKPress		equ 401Bh
_JForceCmdNoChar	equ 401Eh
_JForceCmd		equ 4021h
_sysErrHandler	equ 4024h
_NewContext		equ 4027h
_NewContext0		equ 402Ah
_A2POINTHLIND		equ 402Dh
_POINTHLIND		equ 4030h
_PPutAwayPrompt	equ 4033h
_PPutAway		equ 4036h
_PutAway		equ 4039h
_SizeWind		equ 403Ch
_ErrorEP		equ 403Fh
_CallMain		equ 4042h
_monErrHand		equ 4045h
_AppInit		equ 4048h
_appInitIfDec		equ 404Bh
_initialize		equ 404Eh
_LCD_Busy		equ 4051h
_LCDBusy             equ 4051h
_MIN		       equ 4054h
_MAX		       equ 4057h
_AbsO1PABSO2		equ 405Ah
_INTGR		       equ 405Dh
_Trunc	       	equ 4060h
_INVSUB		equ 4063h
_TIMES2		equ 4066h
_Plus1	       	equ 4069h
_Minus1		equ 406Ch
_FPSub	       	equ 406Fh
_FPAdd	       	equ 4072h
_DTOR	         	equ 4075h
_RTOD  		equ 4078h
_Cube  		equ 407Bh
_TimesPt5		equ 407Eh
_FPSquare		equ 4081h
_FPMult		equ 4084h
_LJRND	       	equ 4087h
_INVOP1SC		equ 408Ah
_InvOP1S		equ 408Dh
_InvOP2S		equ 4090h
_Frac  	 	equ 4093h
_FPRecip		equ 4096h
_FPDiv 		equ 4099h
_SqRoot		equ 409Ch
_RNDGUARD		equ 409Fh
_RNFX  		equ 40A2h
_INT   		equ 40A5h
_ROUND 		equ 40A8h
_LNX   		equ 40ABh
_LogX  		equ 40AEh
_LJNORND		equ 40B1h
_ETOX  		equ 40B4h
_TENX  		equ 40B7h
_SinCosRad		equ 40BAh
_Sin   		equ 40BDh
_Cos   		equ 40C0h
_Tan   		equ 40C3h
_ACosRad		equ 40C6h
_ATanRad		equ 40C9h
_ATan2Rad		equ 40CCh
_ASinRad		equ 40CFh
_ACos  		equ 40D2h
_ATan  		equ 40D5h
_ASin  		equ 40D8h
_ATan2 		equ 40DBh
_PToR  		equ 40DEh
_RToP  		equ 40E1h
_HLTimes9		equ 40E4h
_CkOP1Real		equ 40E7h
_CPOP4OP3		equ 40EAh
_MOV9OP2CP		equ 40EDh
_AbsO1O2Cp		equ 40F0h
_CpOP1OP2		equ 40F3h
_OP3ToOP4		equ 40F6h
_OP1ToOP4		equ 40F9h
_OP2ToOP4		equ 40FCh
_OP4ToOP2		equ 40FFh
_OP3ToOP2		equ 4102h
_OP1ToOP3		equ 4105h
_OP5ToOP2		equ 4108h
_OP5ToOP6		equ 410Bh
_OP5ToOP4		equ 410Eh
_OP1ToOP2		equ 4111h
_OP6ToOP2		equ 4114h
_OP6ToOP1		equ 4117h
_OP4ToOP1		equ 411Ah
_OP5ToOP1		equ 411Dh
_OP3ToOP1		equ 4120h
_OP6ToOP5		equ 4123h
_OP4ToOP5		equ 4126h
_OP3ToOP5		equ 4129h
_OP2ToOP5		equ 412Ch
_OP2ToOP6		equ 412Fh
_OP1ToOP6		equ 4132h
_OP1ToOP5		equ 4135h
_OP2ToOP1		equ 4138h
_MOVREG		equ 413Bh
_MOV10B		equ 413Eh
_Mov9B 		equ 4141h
_MOV18 		equ 4144h
_Mov8b 		equ 4147h
_Mov7b 		equ 414Ah
_MOV14 		equ 414Dh
_MOV6B 		equ 4150h
_MOV5B 		equ 4153h
_MOV4B 		equ 4156h
_MOV3B 		equ 4159h
_MOV2B 		equ 415Ch
_OP2ToOP3		equ 415Fh
_OP4ToOP3		equ 4162h
_OP5ToOP3		equ 4165h
_OP4ToOP6		equ 4168h
_MOV9TOOP1		equ 416Bh
_MOV9OP1OP2		equ 416Eh
_Mov9ToOP2		equ 4171h
_MovFrOP1		equ 4174h
_movtoop2		equ 4177h
_movtoop3		equ 417Ah
_OP4Set1		equ 417Dh
_OP3Set1		equ 4180h
_OP2Set8		equ 4183h
_OP2Set5		equ 4186h
_OP2SetA		equ 4189h
_OP2Set4		equ 418Ch
_OP2Set3		equ 418Fh
_OP1Set1		equ 4192h
_OP1Set4		equ 4195h
_OP1Set3		equ 4198h
_OP3Set2		equ 419Bh
_OP1Set2		equ 419Eh
_OP2Set2		equ 41A1h
_SETNUM2		equ 41A4h
_SETMANT1		equ 41A7h
_OP2Set1		equ 41AAh
_SETNUM1		equ 41ADh
_SETNUM		equ 41B0h
_SETNUMA		equ 41B3h
_SETMANT		equ 41B6h
_ZERO16D		equ 41B9h
_SET16A		equ 41BCh
_SET14A		equ 41BFh
_SET14D		equ 41C2h
_OP5Set0		equ 41C5h
_OP4Set0		equ 41C8h
_OP3Set0		equ 41CBh
_OP2Set0		equ 41CEh
_OP1Set0		equ 41D1h
_SETNUM0		equ 41D4h
_ZEROOP1		equ 41D7h
_ZEROOP2		equ 41DAh
_ZEROOP3		equ 41DDh
_ZEROOP		equ 41E0h
_CLRLP 		equ 41E3h
_SHRACC		equ 41E6h
_SHLACC		equ 41E9h
_SHR18 		equ 41ECh
_SHR18A		equ 41EFh
_SHR16 		equ 41F2h
_SHR14 		equ 41F5h
_SHL16 		equ 41F8h
_SHL14 		equ 41FBh
_SRDO1 		equ 41FEh
_SHRDRND		equ 4201h
_MANTPA		equ 4204h
_ADDPROP		equ 4207h
_ADDPROPLP		equ 420Ah
_ADD16D		equ 420Dh
_ADD14D		equ 4210h
_SUB16D		equ 4213h
_SUB14D		equ 4216h
_OP1ExOP5		equ 4219h
_OP1ExOP6		equ 421Ch
_OP1ExOP3		equ 421Fh
_OP1ExOP4		equ 4222h
_OP1ExOP2		equ 4225h
_ExLP  		equ 4228h
_CKOP1C0		equ 422Bh
_CkOP1FP0		equ 422Eh
_CkOP2FP0		equ 4231h
_POSNO0INT		equ 4234h
_CkPosInt		equ 4237h 
_CkInt 		equ 423Ah
_CkOdd 		equ 423Dh
_CKOP1M		equ 4240h
_GetCon1		equ 4243h
_GetCon		equ 4246h
_EXPTOHEX		equ 4249h
_OP1EXPTODEC		equ 424Ch
_CKOP2POS		equ 424Fh
_CkOP1Pos		equ 4252h
_ClrOP2S		equ 4255h
_ClrOP1S		equ 4258h
_FDIV100		equ 425Bh
_FDIV10		equ 425Eh
_DECO1EXP		equ 4261h
_INCO1EXP		equ 4264h
_INCEXP		equ 4267h
_CKVALIDNUM		equ 426Ah
_GETEXP		equ 426Dh
_HTimesL		equ 4270h
_EOP1NOTREAL		equ 4273h
_REGEQNAME		equ 4276h
_XNAME 		equ 4279h
_YNAME 		equ 427Ch
_REALNAME		equ 427Fh
_SETesTOfps		equ 4282h
_CHKTEMPDIRT		equ 4285h
_OP1MOP2EXP		equ 4288h
_OP1EXPMDE		equ 428Bh
_CHKERRBREAK		equ 428Eh
_IsA2ByteTok		equ 4291h
_GETLASTENTRY		equ 4294h
_GETLASTENTRYPTR	equ 4297h
_RESETWINTOP		equ 429Ah
_SETYUP		equ 429Dh
_SETXUP		equ 42A0h
_ISO1NONTLSTorPROG	equ 42A3h
_ISO1NONTEMPLST	equ 42A6h
_IS_A_LSTorCLST	equ 42A9h
_CHK_HL_999		equ 42ACh
_EQU_or_NEWEQU	equ 42AFh
_ERRD_OP1NOTPOS	equ 42B2h
_ERRD_OP1NOT_R	equ 42B5h
_ERRD_OP1NOTPOSINT	equ 42B8h
_ERRD_OP1_LE_0	equ 42BBh
_ERRD_OP1_0		equ 42BEh
_FINDSYM_GET_SIZE	equ 42C1h
_STO_STATVAR		equ 42C4h
_RCL_STATVAR		equ 42C7h
_CKOP2REAL		equ 42CAh
_MemChk		equ 42CDh
_CMPPRGNAMLEN1	equ 42D0h
_CMPPRGNAMLEN		equ 42D3h
_FindProgSym		equ 42D6h
_ChkFindSym		equ 42D9h
_FindSym		equ 42DCh
_InsertMem		equ 42DFh
_INSERTMEMA		equ 42E2h
_EnoughMem		equ 42E5h
_CMPMEMNEED		equ 42E8h
_CREATEPVAR4		equ 42EBh
_CREATEPVAR3		equ 42EEh
_CREATEVAR3		equ 42F1h
_CREATEREAL		equ 42F4h
_CREATETRLIST		equ 42F7h
_CREATERLIST		equ 42FAh
_CREATETSTRNG		equ 42FDh
_CREATESTRNG		equ 4300h
_CREATE0EQU		equ 4303h
_CREATETEQU		equ 4306h
_CREATEEQU		equ 4309h
_CREATEPICT		equ 430Ch
_CreateProg		equ 430Fh
_CreateAppVar		equ 4312h
_CHKDEL		equ 4315h
_CHKDELA		equ 4318h
_ADJPARSER		equ 431Bh
_ADJMATH		equ 431Eh
_ADJM7 		equ 4321h
_DELMEMA		equ 4324h
_GET_FORM_NUM		equ 4327h
_DelVar		equ 432Ah
_DELVARIO		equ 432Dh
_DelMem		equ 4330h
_SYM_PROG_NON_T_LST	equ 4333h
_ADJSYMPTRS		equ 4336h
_DATASIZEA		equ 4339h
_DataSize		equ 433Ch
_POPOP5		equ 433Fh
_POPOP3		equ 4342h
_PopOP1		equ 4345h
_PopRealO6		equ 4348h
_PopRealO5		equ 434Bh
_PopRealO4		equ 434Eh
_PopRealO3		equ 4351h
_PopRealO2		equ 4354h
_PopRealO1		equ 4357h
_POPREAL		equ 435Ah
_FPOPREAL		equ 435Dh
_FPOPFPS		equ 4360h
_DEALLOCFPS		equ 4363h
_DEALLOCFPS1		equ 4366h
_ALLOCFPS		equ 4369h
_ALLOCFPS1		equ 436Ch
_PushRealO6		equ 436Fh
_PushRealO5		equ 4372h
_PushRealO4		equ 4375h
_PushRealO3		equ 4378h
_PushRealO2		equ 437Bh
_PushRealO1		equ 437Eh
_PUSHREAL		equ 4381h
_PUSHOP5		equ 4384h
_PUSHOP3		equ 4387h
_PushOP1		equ 438Ah
_CPYTO1FPS11		equ 438Dh
_CPYTO2FPS5		equ 4390h
_CPYTO1FPS5		equ 4393h
_CPYTO2FPS6		equ 4396h
_CPYTO1FPS6		equ 4399h
_CPYTO2FPS7		equ 439Ch
_CPYTO1FPS7		equ 439Fh
_CPYTO1FPS8		equ 43A2h
_CPYTO2FPS8		equ 43A5h
_CPYTO1FPS10		equ 43A8h
_CPYTO1FPS9		equ 43ABh
_CPYTO2FPS4		equ 43AEh
_CPYTO6FPS3		equ 43B1h
_CPYTO6FPS2		equ 43B4h
_CPYTO2FPS3		equ 43B7h
_CPYCTO1FPS3		equ 43BAh
_CPYTO1FPS3		equ 43BDh
_CPYFPS3		equ 43C0h
_CPYTO1FPS4		equ 43C3h
_CPYTO3FPS2		equ 43C6h
_CPYTO5FPST		equ 43C9h
_CPYTO6FPST		equ 43CCh
_CPYTO4FPST		equ 43CFh
_CPYTO3FPST		equ 43D2h
_CPYTO2FPST		equ 43D5h
_CPYTO1FPST		equ 43D8h
_CPYFPST		equ 43DBh
_CPYSTACK		equ 43DEh
_CPYTO3FPS1		equ 43E1h
_CPYTO2FPS1		equ 43E4h
_CPYTO1FPS1		equ 43E7h
_CPYFPS1		equ 43EAh
_CPYTO2FPS2		equ 43EDh
_CPYTO1FPS2		equ 43F0h
_CPYFPS2		equ 43F3h
_CPYO3TOFPST		equ 43F6h
_CPYO2TOFPST		equ 43F9h
_CPYO6TOFPST		equ 43FCh
_CPYO1TOFPST		equ 43FFh
_CPYTOFPST		equ 4402h
_CPYTOSTACK		equ 4405h
_CPYO3TOFPS1		equ 4408h
_CPYO5TOFPS1		equ 440Bh
_CPYO2TOFPS1		equ 440Eh
_CPYO1TOFPS1		equ 4411h
_CPYTOFPS1		equ 4414h
_CPYO2TOFPS2		equ 4417h
_CPYO3TOFPS2		equ 441Ah
_CPYO6TOFPS2		equ 441Dh
_CPYO1TOFPS2		equ 4420h
_CPYTOFPS2		equ 4423h
_CPYO5TOFPS3		equ 4426h
_CPYO2TOFPS3		equ 4429h
_CPYO1TOFPS3		equ 442Ch
_CPYTOFPS3		equ 442Fh
_CPYO1TOFPS6		equ 4432h
_CPYO1TOFPS7		equ 4435h
_CPYO1TOFPS5		equ 4438h
_CPYO2TOFPS4		equ 443Bh
_CPYO1TOFPS4		equ 443Eh
_ERRNOTENOUGHMEM	equ 4441h
_FPSMINUS9		equ 4444h
_HLMINUS9		equ 4447h
_StrCopy		equ 444Ah
_strCat		equ 444Dh
_isInSet		equ 4450h
_STransmit		equ 4453h
_GEQNAMEA		equ 4456h
_x_bank_call		equ 4459h
_x_bank_ret		equ 445Ch
_x_bank_jump		equ 445Fh
_x_bank_entry		equ 4462h
_READDISP2		equ 4465h
_PutMap		equ 4468h
_PutC  		equ 446Bh
_DispHL		equ 446Eh
_PutS  		equ 4471h
_putpsb		equ 4474h
_PutPS 		equ 4477h
_wputps		equ 447Ah
_Putbuf		equ 447Dh
_putbuf1		equ 4480h
_wputc 		equ 4483h
_wputs 		equ 4486h
_wputsEOL		equ 4489h
_wdispEOL		equ 448Ch
_whomeUp		equ 448Fh
_setNumWindow		equ 4492h
_NewLine		equ 4495h
_moveDown		equ 4498h
_ScrollUp		equ 449Bh
_shrinkWindow		equ 449Eh
_moveUp		equ 44A1h
_ScrollDown		equ 44A4h
_ClrLCDFull		equ 44A7h
_ClrLCD		equ 44AAh
_ClrScrnFull		equ 44ADh
_ClrScrn		equ 44B0h
_ClrTxtShd		equ 44B3h
_ClrWindow		equ 44B6h
_EraseEOL		equ 44B9h
_EraseEOW		equ 44BCh
_HomeUp		equ 44BFh
_getcurloc		equ 44C2h
_VPutMap		equ 44C5h
_VPutS 		equ 44C8h
_VPutSN		equ 44CBh
_vputsnG		equ 44CEh
_vputsnT		equ 44D1h
_runIndicOn		equ 44D4h
_RunIndicOff		equ 44D7h
_SaveShadow		equ 44DAh
_RstrShadow		equ 44DDh
_rstrpartial		equ 44E0h
_rstrCurRow		equ 44E3h
_RstrUnderMenu	equ 44E6h
_rstrbotrow		equ 44E9h
_saveTR		equ 44ECh
_restoreTR		equ 44EFh
_GETKEYPRESS		equ 44F2h
_GETTOKLEN		equ 44F5h
_Get_Tok_Strng	equ 44F8h
_GetTokString		equ 44FBh
_PUTBPATBUF2		equ 44FEh
_PutBPATBuf		equ 4501h
_PutBPAT		equ 4504h
_PutCCheckScroll	equ 4507h
_dispEOL		equ 450Ah
_fdispEOL		equ 450Dh
_MAKEROWCMD		equ 4510h
_TOTOSTRP		equ 4513h
_SETVARNAME		equ 4516h
_dispDone		equ 4519h
_finishoutput		equ 451Ch
_curBlink		equ 451Fh
_CursorOff		equ 4522h
_hideCursor		equ 4525h
_CursorOn		equ 4528h
_showCursor		equ 452Bh
_KEYTOSTRING		equ 452Eh
_PULLDOWNCHK		equ 4531h
_MenuCatCommon	equ 4534h
_NCifprgmedmode	equ 4537h
_LoadMenuNum		equ 453Ah
_LoadMenuNumL		equ 453Dh
_MenuEdKey		equ 4540h
_MenCatRet		equ 4543h
_notalphnum		equ 4546h
_SaveSavedFlags	equ 4549h
_SetMenuFlags		equ 454Ch
_RstrSomeFlags	equ 454Fh
_RstrSmallText	equ 4552h
_dispListName		equ 4555h
_SeeIfErrorCx		equ 4558h
_RstrOScreen		equ 455Bh
_SaveOscreen		equ 455Eh
_DispLAlphaName	equ 4561h
_AbortPrgmode		equ 4564h
_ADRMROW		equ 4567h
_ADRMELE		equ 456Ah
_GETL1TOOP1		equ 456Dh
_GETL1TOP1A		equ 4570h
_GETLTOOP1		equ 4573h
_GETL1TOOP2		equ 4576h
_GETL1TOP2A		equ 4579h
_GETL2TOP1A		equ 457Ch
_PUTTOLA1		equ 457Fh
_PUTTOL		equ 4582h
_MAXMINLST		equ 4585h
_LLOW  		equ 4588h
_LHIGH 		equ 458Bh
_LSUM  		equ 458Eh
_CUMSUM		equ 4591h
_TOFRAC		equ 4594h
_CMP_NUM_INIT		equ 4597h
_BINOPEXEC		equ 459Ah
_EXMEAN1		equ 459Dh
_SET2MVLPTRS		equ 45A0h
_SETMAT1		equ 45A3h
_CREATETLIST		equ 45A6h
_UnOpExec		equ 45A9h
_ThreeExec		equ 45ACh
_RESTOREERRNO		equ 45AFh
_FOUREXEC		equ 45B2h
_FIVEEXEC		equ 45B5h
_CPYTO2ES1		equ 45B8h
_CPYTO6ES1		equ 45BBh
_CPYTO1ES1		equ 45BEh
_CPYTO3ES1		equ 45C1h
_CPYTO3ES2		equ 45C4h
_CPYTO2ES2		equ 45C7h
_CPYTO1ES2		equ 45CAh
_CPYTO2ES3		equ 45CDh
_CPYTO1ES3		equ 45D0h
_CPYTO3ES4		equ 45D3h
_CPYTO6ES3		equ 45D6h
_CPYTO2ES4		equ 45D9h
_CPYTO1ES4		equ 45DCh
_CPYTO2ES5		equ 45DFh
_CPYTO1ES5		equ 45E2h
_CPYTO4EST		equ 45E5h
_CPYTO2EST		equ 45E8h
_CPYTO1EST		equ 45EBh
_CPYTO2ES6		equ 45EEh
_CPYTO1ES6		equ 45F1h
_CPYTO2ES7		equ 45F4h
_CPYTO1ES7		equ 45F7h
_CPYTO2ES8		equ 45FAh
_CPYTO1ES8		equ 45FDh
_CPYTO1ES9		equ 4600h
_CPYTO2ES9		equ 4603h
_CPYTO2ES10		equ 4606h
_CPYTO1ES10		equ 4609h
_CPYTO2ES11		equ 460Ch
_CPYTO1ES11		equ 460Fh
_CPYTO2ES12		equ 4612h
_CPYTO1ES12		equ 4615h
_CPYTO2ES13		equ 4618h
_CPYTO1ES13		equ 461Bh
_CPYTO1ES14		equ 461Eh
_CPYTO1ES16		equ 4621h
_CPYTO1ES17		equ 4624h
_CPYTO1ES18		equ 4627h
_CPYTO1ES15		equ 462Ah
_CPYTO2ES15		equ 462Dh
_CPYO1TOEST		equ 4630h
_CPYO1TOES1		equ 4633h
_CPYO6TOES1		equ 4636h
_CPYO6TOES3		equ 4639h
_CPYO1TOES2		equ 463Ch
_CPYO2TOES2		equ 463Fh
_CPYO1TOES3		equ 4642h
_CPYO1TOES4		equ 4645h
_CPYO1TOES5		equ 4648h
_CPYO1TOES6		equ 464Bh
_CPYO1TOES7		equ 464Eh
_CPYO2TOES4		equ 4651h
_CPYO2TOES5		equ 4654h
_CPYO2TOES6		equ 4657h
_CPYO2TOES7		equ 465Ah
_CPYO2TOES8		equ 465Dh
_CPYO2TOES9		equ 4660h
_CPYO1TOES8		equ 4663h
_CPYO1TOES9		equ 4666h
_CPYO1TOES10		equ 4669h
_CPYO1TOES11		equ 466Ch
_CPYO1TOES12		equ 466Fh
_CPYO1TOES13		equ 4672h
_CPYO1TOES14		equ 4675h
_CPYO1TOES15		equ 4678h
_setTitlE		equ 467Bh
_dispVarVal		equ 467Eh
_RecallEd		equ 4681h
_setupBuffer		equ 4684h
_createNumEditBuf	equ 4687h
_CallCommon		equ 468Ah
_CommonKeys		equ 468Dh
_Leftmore		equ 4690h
_fDel  		equ 4693h
_fClear		equ 4696h
_finsDisp		equ 4699h
_FinsDisp02		equ 469Ch
_setIndicator		equ 469Fh
_CloseEditBufNoR	equ 46A2h
_ReleaseBuffer	equ 46A5h
_varnameToOP1hl	equ 46A8h
_nameToOP1		equ 46ABh
_numPPutAway		equ 46AEh
_numRedisp		equ 46B1h
_numError02		equ 46B4h
_LOAD_SFONT		equ 46B7h
_SFONT_LEN		equ 46BAh
_InitNumVec		equ 46BDh
_SetXXOP1		equ 46C0h
_SetXXOP2		equ 46C3h
_SetXXXXOP2		equ 46C6h
_UCLINES		equ 46C9h
_CLine	       	equ 46CCh
_CLineS		equ 46CFh
_XROOTY		equ 46D2h
_YToX  		equ 46D5h
_ZMSTATS		equ 46D8h
_POINT_STAT_HLP	equ 46DBh
_DRAWSPLOT		equ 46DEh
_INITNEWTRACEP	equ 46E1h
_CLRPREVPLOT		equ 46E4h
_PUT_INDEX_LST	equ 46E7h
_GET_INDEX_LST	equ 46EAh
_HEAP_SORT		equ 46EDh
_STOGDB2		equ 46F0h
_RCLGDB2		equ 46F3h
_CIRCCMD		equ 46F6h
_GRPHCIRC		equ 46F9h
_MOV18B		equ 46FCh
_DARKLINE		equ 46FFh
_ILine		       equ 4702h
_IPoint		equ 4705h
_XYRNDBOTH		equ 4708h
_XYRND		       equ 470Bh
_CheckTOP		equ 470Eh
_CheckXY		equ 4711h
_DARKPNT		equ 4714h
_CPointS		equ 4717h
_WTOV  		equ 471Ah
_VtoWHLDE		equ 471Dh
_XItoF 		equ 4720h
_YFTOI 		equ 4723h
_XFTOI 		equ 4726h
_TraceOff		equ 4729h
_GrRedisp		equ 472Ch
_GDISPTOKEN		equ 472Fh
_GRDECODA		equ 4732h
_LABCOOR		equ 4735h
_COORDISP		equ 4738h
_TMPEQUNOSRC		equ 473Bh
_GRLABELS		equ 473Eh
_YPIXSET		equ 4741h
_XPIXSET		equ 4744h
_COPYRNG		equ 4747h
_VALCUR		equ 474Ah
_GRPUTAWAY		equ 474Dh
_RSTGFLAGS		equ 4750h
_GRReset		equ 4753h
_XYCENT		equ 4756h
_ZOOMXYCMD		equ 4759h
_CPTDELY		equ 475Ch
_CPTDELX		equ 475Fh
_SETFUNCM		equ 4762h
_SETPOLM		equ 4765h
_SETPARM		equ 4768h
_ZMINT	       	equ 476Bh
_ZMDECML		equ 476Eh
_ZMPREV		equ 4771h
_ZMUSR	       	equ 4774h
_SETUZM		equ 4777h
_ZMFIT	       	equ 477Ah
_ZMSQUARE		equ 477Dh
_ZMTRIG		equ 4780h
_SetXMinMax		equ 4783h
_ZooDefault		equ 4786h
_GrBufCpy		equ 4789h
_RestoreDisp		equ 478Ch
_FNDDB	       	equ 478Fh
_ALLEQ	       	equ 4792h
_fndallseleq		equ 4795h
_NEXTEQ		equ 4798h
_PREVEQ		equ 479Bh
_BLINKGCUR		equ 479Eh
_NBCURSOR		equ 47A1h
_STATMARK		equ 47A4h
_CHKTEXTCURS		equ 47A7h
_REGRAPH		equ 47AAh
_xbar	        	equ 47ADh
_DOREFFLAGS02		equ 47B0h
_YRES  		equ 47B3h
_PLOTPTXY2		equ 47B6h
_Ceiling		equ 47B9h
_PUTXY		equ 47BCh
_PUTEQUNO		equ 47BFh
_PDspGrph		equ 47C2h
_HORIZCMD		equ 47C5h
_VERTCMD		equ 47C8h
_LINECMD		equ 47CBh
_UNLINECMD		equ 47CEh
_POINTCMD		equ 47D1h
_PIXELTEST		equ 47D4h
_PIXELCMD		equ 47D7h
_DRAWCMD_INIT		equ 47DAh
_DRAWCMD		equ 47DDh
_SHADECMD		equ 47E0h
_INVCMD		equ 47E3h
_dsplsts		equ 47E6h
_closeEditBuf		equ 47E9h
_parseEditBuf		equ 47ECh
_putsm		equ 47EFh
_DspCurTbl		equ 47F2h
_ZeroTemplate		equ 47F5h
_settblrefs		equ 47F8h
_dispTblBot		equ 47FBh
_DispTblTop		equ 47FEh
_dispTblbody		equ 4801h
_VPUTBLANK		equ 4804h
_CurNameLength		equ 4807h
_NameToBuf		equ 480Ah
_jpromptcursor		equ 480Dh
_BufLeft		equ 4810h
_BufRight		equ 4813h
_BufInsert		equ 4816h
_bufQueueChar		equ 4819h
_BufReplace		equ 481Ch
_BufDelete		equ 481Fh
_BufPeek		equ 4822h
_BufPeek1		equ 4825h
_BufPeek2		equ 4828h
_BUFPEEK3		equ 482Bh
_BufToBtm		equ 482Eh
_SetupEditEqu		equ 4831h
_BufToTop		equ 4834h
_isEditFull		equ 4837h
_IsEditEmpty		equ 483Ah
_isAtBtm		equ 483Dh
_BufClear		equ 4840h
_CursorLeft		equ 4843h
_CursorDown		equ 4846h
_cursorToOffset		equ 4849h
_InsDisp		equ 484Ch
_FDISPBOL1		equ 484Fh
_FDISPBOL		equ 4852h
_DispEOW		equ 4855h
_DispHead		equ 4858h
_DispTail		equ 485Bh
_PutTokString		equ 485Eh
_setEmptyEditEqu		equ 4861h
_SetEmptyEditPtr		equ 4864h
_CloseEditEqu		equ 4867h
_GetPrevTok		equ 486Ah
_GetKey		equ 486Dh
_CanIndic		equ 4870h
_LCD_DriverOn		equ 4873h
_formDisp		equ 4876h
_WScrollLeft		equ 4879h
_wscrollUp		equ 487Ch
_wscrollDown		equ 487Fh
_wscrollRight		equ 4882h
_formEReal		equ 4885h
_formERealTOK		equ 4888h
_FormReal		equ 488Bh
_FormScrollUp		equ 488Eh
_setwinabove		equ 4891h
_DisarmScroll		equ 4894h
_OP1toEdit		equ 4897h
_rclVarToEdit		equ 489Ah
_rclVarToEditPtr		equ 489Dh
_RclEntryToEdit		equ 48A0h
_rclToQueue		equ 48A3h
_FormToTok		equ 48A6h
_DISP_INTERVAL		equ 48A9h
_DisplstName		equ 48ACh
_dispSLstNameHL		equ 48AFh
_EditEqu		equ 48B2h
_closeEquField		equ 48B5h
_AutoSelect		equ 48B8h
_DISPYEOS		equ 48BBh
_setupdispeq		equ 48BEh
_DispForward		equ 48C1h
_DispYPrompt2		equ 48C4h
_StringWidth		equ 48C7h
_dispErrorScreen		equ 48CAh
_POPCX		equ 48CDh
_loadnoeentry		equ 48D0h
_SaveScreen		equ 48D3h
_RETSCREEN		equ 48D6h
_RetScreenErr		equ 48D9h
_itemName		equ 48DCh
_ConvKeyToTok		equ 48DFh
_KEYTOTOKNEW2B		equ 48E2h
_KEYTOTOK2BYTE		equ 48E5h
_TOKTOKEY		equ 48E8h
_SEND1BERR		equ 48EBh
_GETVARCMD		equ 48EEh
_SENDVARCMD		equ 48F1h
_KeyScnLnk		equ 48F4h
_IORESETALL		equ 48F7h
_DelRes		equ 48FAh
_REDIMMAT		equ 48FDh
_INCLSTSIZE		equ 4900h
_insertlist		equ 4903h
_dellistel		equ 4906h
_EditProg		equ 4909h
_CLOSEPROG		equ 490Ch
_CLRGRAPHREF		equ 490Fh
_FIXTEMPCNT		equ 4912h
_SAVEDATA		equ 4915h
_RESTOREDATA		equ 4918h
_FindAlphaup		equ 491Bh
_FindAlphadn		equ 491Eh
_CMPSYMS		equ 4921h
_CREATETEMP		equ 4924h
_CLEANALL		equ 4927h
_MOVETONEXTSYM		equ 492Ah
_TblScreenDn		equ 492Dh
_TblScreenUp		equ 4930h
_SCREENUP		equ 4933h
_SCREENUPDOWN		equ 4936h
_ZifRclHandler		equ 4939h
_zifrclkapp		equ 493Ch
_rclkeyRtn		equ 493Fh
_RCLKEY		equ 4942h
_RCLREGEQ_CALL		equ 4945h
_RclRegEq		equ 4948h
_initNamePrompt		equ 494Bh
_NamePrompt2		equ 494Eh
_CATALOGCHK		equ 4951h
_clrTR		equ 4954h
_BC2NONREAL		equ 4957h
_ERRNONREAL		equ 495Ah
_WRITE_TEXT		equ 495Dh
_GRPHPARS		equ 4960h
_PLOTPARS		equ 4963h
_ParseInp		equ 4966h
_PARSEOFF		equ 4969h
_PARSESCAN		equ 496Ch
_GETPARSE		equ 496Fh
_SAVEPARSE		equ 4972h
_InitPFlgs		equ 4975h
_CKENDLINERR		equ 4978h
_OP2SET60		equ 497Bh
_GETSTATPTR		equ 497Eh
_CMP_STATPTR		equ 4981h
_VARSYSADR		equ 4984h
_STOSYSTOK		equ 4987h
_StoAns		equ 498Ah
_STOY		equ 498Dh
_STOX		equ 4990h
_STOOTHER		equ 4993h
_RclAns		equ 4996h
_RclY		equ 4999h
_RclX		equ 499Ch
_RCLVARSYM		equ 499Fh
_RCLSYSTOK		equ 49A2h
_StMatEl		equ 49A5h
_STLSTVECEL		equ 49A8h
_ConvOP1		equ 49ABh
_isaletter		equ 49AEh
_Find_Parse_Formula		equ 49B1h
_PARSE_FORMULA		equ 49B4h
_dialogGo		equ 49B7h
_dialogInit		equ 49BAh
_dialogNumToOp1		equ 49BDh
_dialogOp1ToNum		equ 49C0h
_dialogNumIndex		equ 49C3h
_dialogForceRange		equ 49C6h
_dialogSetSendKey		equ 49C9h
_dialogResSendKey		equ 49CCh
_JdialogGotKey		equ 49CFh
_JdialogGetKey		equ 49D2h
_dialogGoSendKey		equ 49D5h
_AppkeyChk		equ 49D8h
_dialogSetAppKeyChk		equ 49DBh
_dialogResAppKeyChk		equ 49DEh
_errOverflow		equ 49E1h
_errDivBy0		equ 49E4h
_errDomain		equ 49E7h
_errIncrement		equ 49EAh
_errNon_Real		equ 49EDh
_errSyntax		equ 49F0h
_errMode		equ 49F3h
_errScale		equ 49F6h
_ErrDataType		equ 49F9h
_errReserved		equ 49FCh
_errArgument		equ 49FFh
_errDimMismatch		equ 4A02h
_errDimension		equ 4A05h
_errUndefined		equ 4A08h
_ErrMemory		equ 4A0Bh
_errMemFail		equ 4A0Eh
_errInvalid		equ 4A11h
_errIllegalNest		equ 4A14h
_errBound		equ 4A17h
_errGraphRange		equ 4A1Ah
_errZoom		equ 4A1Dh
_errBreak		equ 4A20h
_errStat		equ 4A23h
_errSolver		equ 4A26h
_errSignChange		equ 4A29h
_errIterations		equ 4A2Ch
_errBadGuess		equ 4A2Fh
_errTolTooSmall		equ 4A32h
_errStatPlot		equ 4A35h
_ErrLinkXmit		equ 4A38h
_ClearBlockEOL		equ 4A3Bh
_Box		equ 4A3Eh
_formENum		equ 4A41h
_dialogNumToNum		equ 4A44h
_MemClear		equ 4A47h
_MemSet		equ 4A4Ah
_JError		equ 4A4Dh
_ReloadAppEntryVecs		equ 4A50h
_drawHomeExpr		equ 4A53h
_PointOn		equ 4A56h
_JrunKeystrokeApp		equ 4A59h
_StrLength		equ 4A5Ch
_Exec_IO		equ 4A5Fh
_userPutMap		equ 4A62h
_getCurrentPageSub		equ 4A65h
_emptyHomeStacks		equ 4A68h
_BCDToDecStr		equ 4A6Bh
_strchr		equ 4A6Eh
_GetNextToken		equ 4A71h
_GetPrevToken		equ 4A74h
_scrShiftUp		equ 4A77h
_scrShiftDown		equ 4A7Ah
_DrawFrac		equ 4A7Dh
_calcExprSize		equ 4A80h
_dialogContext		equ 4A83h
_findAppUp		equ 4A86h
_findAppDn		equ 4A89h
_findApp		equ 4A8Ch
_executeApp		equ 4A8Fh
_JAppTerm		equ 4A92h
_allowErrGoto		equ 4A95h
_killErrGoto		equ 4A98h
_xKeyAllowed		equ 4A9Bh
_scrScrollDown		equ 4A9Eh
_scrScrollUp		equ 4AA1h
_IBounds		equ 4AA4h
_IOffset		equ 4AA7h
_EPline		equ 4AAAh
_DrawCirc2		equ 4AADh
_CanAlphIns		equ 4AB0h
_redisp		equ 4AB3h
_adrlele		equ 4AB6h
_createslist		equ 4AB9h
_exec_pgmio		equ 4ABCh
_xCentCursor		equ 4ABFh
_xTEXT		equ 4AC2h
_xFINISHSPEC		equ 4AC5h
_xTRCYFUNC		equ 4AC8h
_xGRPPutAway		equ 4ACBh
_xCKVALDELX		equ 4ACEh
_xCKVALDELTA		equ 4AD1h
_GrBufClr     	equ 4AD4h
_xGRBUFCPY_V		equ 4AD7h
_xFNDSELEQ		equ 4ADAh
_xCLRGRAPHXY		equ 4ADDh
_xNEXT_Y_STYLE		equ 4AE0h
_xPLOTPT		equ 4AE3h
_xNEWINDEP		equ 4AE6h
_xAxes		equ 4AE9h
_xSetPenX		equ 4AECh
_xSetPenY		equ 4AEFh
_xSetPenT		equ 4AF2h
_xTAN_EQU_DISP		equ 4AF5h
_xPutAns		equ 4AF8h
_DispOP1A		equ 4AFBh
_xENDDRAW		equ 4AFEh
_xSTRNGENT1		equ 4B01h
_xGETNUMLET		equ 4B04h
_xINIT_PROG_LIST		equ 4B07h
_xPRGRDLP		equ 4B0Ah
_xVARENT		equ 4B0Dh
_xRCLSTAT		equ 4B10h
_xPARSELOOP		equ 4B13h
_xPARSEONC		equ 4B16h
_xPARSEON		equ 4B19h
_xPARSECMD		equ 4B1Ch
_xSTOTYPE		equ 4B1Fh
_xCREATEPAIR		equ 4B22h
_xPUSHNUM		equ 4B25h
_xINCCURPCERREND		equ 4B28h
_xERREND		equ 4B2Bh
_xCOMMAERRF		equ 4B2Eh
_xCOMMAERR		equ 4B31h
_xSTEQARG2		equ 4B34h
_xSTEQARG		equ 4B37h
_xINPARG		equ 4B3Ah
_xSTEQARG3		equ 4B3Dh
_xNXTFETCH		equ 4B40h
_xCKFETCHVAR		equ 4B43h
_xFETCHVARA		equ 4B46h
_xFETCHVAR		equ 4B49h
_xCKENDLIN		equ 4B4Ch
_xCKENDEXP		equ 4B4Fh
_xCKPARSEND		equ 4B52h
_xSTOTYPEARG		equ 4B55h
_xCONVDIM		equ 4B58h
_xCONVDIM00		equ 4B5Bh
_xAHEADEQUAL		equ 4B5Eh
_xPARSAHEADS		equ 4B61h
_xPARSAHEAD		equ 4B64h
_AnsName		equ 4B67h
_xSTOCMPREALS		equ 4B6Ah
_xGETDEPTR		equ 4B6Dh
_xPUSH2BOPER		equ 4B70h
_xPOP2BOPER		equ 4B73h
_xPUSHOPER		equ 4B76h
_xPOPOPER		equ 4B79h
_xFIND_E_UNDEF		equ 4B7Ch
_xSTTMPEQ		equ 4B7Fh
_xFINDEOL		equ 4B82h
_xBRKINC		equ 4B85h
_xINCFETCH		equ 4B88h
_xCURFETCH		equ 4B8Bh
_GetBaseVer		equ 4B8Eh
_set9bNum0		equ 4B91h
_InitSetFocus		equ 4B94h
_AppGetCbl		equ 4B97h
_AppGetCalc		equ 4B9Ah
_Random		equ 4B9Dh
_randint		equ 4BA0h
_SaveDisp		equ 4BA3h
_jEventHandled		equ 4BA6h
_jEventNotHandled		equ 4BA9h
_jReturnToOS		equ 4BACh
_jAPIHandleEvent		equ 4BAFh
_jDeliverNewEvent		equ 4BB2h
_HaveFocus		equ 4BB5h
_setAPIEventOverride		equ 4BB8h
_resAPIEventOverride		equ 4BBBh
_FindComponent		equ 4BBEh
_FindCompoment_HL		equ 4BC1h
_AddSubComp		equ 4BC4h
_AddSubCompBC		equ 4BC7h
_AddSubCompBC_IDptr		equ 4BCAh
_AddSubComp_2ptr		equ 4BCDh
_AddCompToSuper		equ 4BD0h
_AddCompToSuper_IDptr		equ 4BD3h
_SetIgnoreKey		equ 4BD6h
_SetSendThisKeyBack		equ 4BD9h
_GetCurrentKey		equ 4BDCh
_DisableAPI		equ 4BDFh
_jGiveMeFocus		equ 4BE2h
_jSetFocus		equ 4BE5h
_DisableApd		equ 4BE8h
_EnableApd		equ 4BEBh
_EnableHooks		equ 4BEEh
_JappExitWithHook		equ 4BF1h
_SetGetKeyHook		equ 4BF4h
_SetOnKeyHook		equ 4BF7h
_SetIntrptHook		equ 4BFAh
_SetRawKeyHook		equ 4BFDh
_forcecmd		equ 4C00h
_JErrorNo		equ 4C03h
_ApdSetup		equ 4C06h
_resetstacks		equ 4C09h
_SetPainthandler		equ 4C0Ch
_setEventhandler		equ 4C0Fh
_get_numkey		equ 4C12h
_disableHooks		equ 4C15h
_RemoveHooks		equ 4C18h
_InitListVar		equ 4C1Bh
_Initgs		equ 4C1Eh
_RandInit		equ 4C21h
_InitVars		equ 4C24h
_Setdefaults		equ 4C27h
_ResMemSaveAppVar		equ 4C2Ah
_FindNextVar		equ 4C2Dh
_SetSearchForAllVars		equ 4C30h
_Srchvlstup		equ 4C33h
_srchvlstdn		equ 4C36h
_idle		equ 4C39h
_jappexit		equ 4C3Ch
_joldapp		equ 4C3Fh
_ReleaseSedit		equ 4C42h
_initsmalleditline		equ 4C45h
_startsmalledit		equ 4C48h
_jsedkeyhandle		equ 4C4Bh
_sgettokstring		equ 4C4Eh
_LoadPattern		equ 4C51h
_SStringLength		equ 4C54h
_sfhome		equ 4C57h
_jsedredisp		equ 4C5Ah
_jsedrawkey		equ 4C5Dh
_jsedputaway		equ 4C60h
_jsedpputaway		equ 4C63h
_jsederror		equ 4C66h
_sputbuf		equ 4C69h
_sfdispeol		equ 4C6Ch
_seraseeol		equ 4C6Fh
_sfdispbol		equ 4C72h
_sputbpatbuf2		equ 4C75h
_cursortooffset1		equ 4C78h
_initsmalleditBox		equ 4C7Bh
_jsedbredisp		equ 4C7Eh
_jsedbrawkey		equ 4C81h
_jsedbputaway		equ 4C84h
_jsedbpputaway		equ 4C87h
_jsedberror		equ 4C8Ah
_clearrow		equ 4C8Dh
_sfdispbol1		equ 4C90h
_setcursize		equ 4C93h
_sputbuf1		equ 4C96h
_sputbpat		equ 4C99h
_scursorup		equ 4C9Ch
_scursordown		equ 4C9Fh
_sdispbow		equ 4CA2h
_sdispeow		equ 4CA5h
_sputtokstring		equ 4CA8h
_sputccheckscroll		equ 4CABh
_sputps		equ 4CAEh
_sputc		equ 4CB1h
_snewline		equ 4CB4h
_sscreenup		equ 4CB7h
_slineup		equ 4CBAh
_sscrolldown		equ 4CBDh
_sdispeob		equ 4CC0h
_seraseeow		equ 4CC3h
_appscreenupdown		equ 4CC6h
_appscreenupdown1		equ 4CC9h
_jsedsizewind		equ 4CCCh
_initsmalleditlinevar		equ 4CCFh
_initsmalleditlineop1		equ 4CD2h
_initsmalleditboxvar		equ 4CD5h
_initsmalleditboxop1		equ 4CD8h
_rcltoedit		equ 4CDBh
_dialoggoto		equ 4CDEh
_errapperr1		equ 4CE1h
_errapperr2		equ 4CE4h
_AppStartMouse		equ 4CE7h
_AppPaintRestartMouse		equ 4CEAh
_AppRestartMouse		equ 4CEDh
_PaintMouse		equ 4CF0h
_EraseMouse		equ 4CF3h
_InitMouse		equ 4CF6h
_BufferRowoffset		equ 4CF9h
_ClearRect		equ 4CFCh
_InvertRect		equ 4CFFh
_FillRect		equ 4D02h
_AppUpdateMouse		equ 4D05h
_UpdateMouse		equ 4D08h
_saveundershadow		equ 4D0Bh
_rstrundershadow		equ 4D0Eh
_rstrcursor		equ 4D11h
_cpop1op2rf		equ 4D14h
_cpop1op2rn		equ 4D17h
_cpop1op2name		equ 4D1Ah
_initcellbox		equ 4D1Dh
_drawcell		equ 4D20h
_defdrawcell		equ 4D23h
_invertcell		equ 4D26h
_setcelloverride		equ 4D29h
_DrawRectBorder		equ 4D2Ch
_clearcell		equ 4D2Fh
_covercell		equ 4D32h
_EraseRectBorder		equ 4D35h
_Fillrectpattern		equ 4D38h
_DrawRectBorderClear		equ 4D3Bh
_appupdatepaintmouse		equ 4D3Eh
_setdispnumop1		equ 4D41h
_homeredraw		equ 4D44h
_drw_above_below		equ 4D47h
_ybar_b		equ 4D4Ah
_iboundsfull		equ 4D4Dh
_zooquad1		equ 4D50h
_convMBEqu		equ 4D53h
_showcurgequ		equ 4D56h
_curgtoequ		equ 4D59h
_DisplayImage		equ 4D5Ch
_applymaskwrite		equ 4D5Fh
_defdrawcell1		equ 4D62h
_shownewmouse		equ 4D65h
_shiftleft		equ 4D68h
_slideup		equ 4D6Bh
_slidedown		equ 4D6Eh
_findsavbtm		equ 4D71h
_rstrbtmtopd		equ 4D74h
_rstrbtmtop		equ 4D77h
_readtopbtm		equ 4D7Ah
_readtopbtmd		equ 4D7Dh
_adjlcdx		equ 4D80h
_dothepaint		equ 4D83h
_saveandpaintm		equ 4D86h
_cpoint		equ 4D89h
_delapp		equ 4D8Ch
_FracStoReal		equ 4D8Fh
_exlstmode1		equ 4D92h
_todec		equ 4D95h
_gcf		equ 4D98h
_ytoxf		equ 4D9Bh
_xrootyf		equ 4D9Eh
_sqrootf		equ 4DA1h
_intdiv		equ 4DA4h
_idv		equ 4DA7h
_simpk10		equ 4DAAh
_simpk		equ 4DADh
_simp		equ 4DB0h
_fracdec		equ 4DB3h
_remainder		equ 4DB6h
_numcells		equ 4DB9h
_shownewmouse1		equ 4DBCh
_setmodecellflag		equ 4DBFh
_resetmodecellflag		equ 4DC2h
_ismodecellset		equ 4DC5h
_getmodecellflag		equ 4DC8h
_getcurcellstruct		equ 4DCBh
_cellboxmanager		equ 4DCEh
_startnewcell		equ 4DD1h
_setupcellblink		equ 4DD4h
_cellkeyhandler		equ 4DD7h
_cellcursorhandle		equ 4DDAh
_eventdrawcell		equ 4DDDh
_chkcelloverride		equ 4DE0h
_clearcurcell		equ 4DE3h
_drawcurcell		equ 4DE6h
_invertcurcell		equ 4DE9h
_covercurcell		equ 4DECh
_Blinkcell		equ 4DEFh
_BlinkCellNoLookUp		equ 4DF2h
_BlinkcurCell		equ 4DF5h
_BlinkCellToOn		equ 4DF8h
_BlinkCellToOnNolookUp		equ 4DFBh
_BlinkCurCellToOn		equ 4DFEh
_BlinkCellToOff		equ 4E01h
_BlinkCellToOffNolookUp		equ 4E04h
_BlinkCurCellToOff		equ 4E07h
_GetCurModecellFlag		equ 4E0Ah
_initalphabox		equ 4E0Dh
_startalphabox		equ 4E10h
_startsmalleditreturn		equ 4E13h
_startsmalleditalphabox		equ 4E16h
_sedalphaboxkey		equ 4E19h
_initcustomalphabox		equ 4E1Ch
_setupCustomCellBlink		equ 4E1Fh
_alphaboxsetevent		equ 4E22h
_cellkhandle		equ 4E25h
_errchkalphabox		equ 4E28h
_resetalphaboxerr		equ 4E2Bh
_findScreenStruct		equ 4E2Eh
_initcellbox2		equ 4E31h
_initcellboxerr		equ 4E34h
_eraseallcells		equ 4E37h
_iscurmodecellset		equ 4E3Ah
_getgroupstruct		equ 4E3Dh
_initalphabox2		equ 4E40h
_alphaboxtbl		equ 4E43h
_getcellstruct		equ 4E46h
_appgetcellstruct		equ 4E49h
_drawblnkcell		equ 4E4Ch
_clearblnkcell		equ 4E4Fh
_invertblnkcell		equ 4E52h
_movemouse		equ 4E55h
_setmouseposition		equ 4E58h
_posmousehlp		equ 4E5Bh
_storand		equ 4E5Eh
_formbase		equ 4E61h
_FormFrac		equ 4E64h
_ratenda		equ 4E67h
_formnotreal		equ 4E6Ah
_xappputaway		equ 4E6Dh
_sedsidemask		equ 4E70h

getKeyHookPtr EQU    85FFh
getKeyHookPage EQU   8601h

apdSubTimer	equ	84E0h
apdTimer	equ	84E1h
appBackUpScreen	equ	8613h
appBank_jump	equ	85C9h
appData	equ	8000h
appErr1	equ	9BC2h
appErr2	equ	9BCFh
appID	equ	837Dh
appInfo	equ	8998h
appPage	equ	85CBh
appRawKeyHandle	equ	85B8h
appSearchPage	equ	8293h
asm_data_ptr1	equ	85AFh
asm_data_ptr2	equ	85B1h
asm_Ind_Call	equ	85B7h
asm_sym_ptr1	equ	85B3h
asm_sym_ptr2	equ	85B5h
bakHeader	equ	83FFh
baseAppBrTab	equ	8230h
bootTemp	equ	8241h
BSTCounter	equ	8559h
chkDelPtr1	equ	8490h
chkDelPtr2	equ	8492h
chkDelPtr3	equ	9BAAh
chkDelPtr4	equ	9BACh
cleanTmp	equ	9BBAh
cmdShadow     equ    9A0Ah
cmdShadCur    equ    9A7Ah
cmdCursor	equ	9A7Eh
contrast	equ	83E0h
curCol	equ	83E3h
CurComponentEvent    equ 85FFh 
curGStyle	equ	8E94h
curGX	equ	8E96h
curGX2	equ	8E98h
curGY	equ	8E95h
curGY2	equ	8E97h
curInc	equ	92DEh
curLstRow	equ	9A8Ch
curLstRowH	equ	9A8Fh
curMatCol	equ	9A8Ah
curMatRow	equ	9A8Bh
curOffset	equ	83E4h
Current_Style	equ	9B03h
currLastEntry	equ	90D1h
curRow	equ	83E2h
curTime	equ	83E1h
curType	equ	8499h
curUnder	equ	83E5h
curXRow	equ	849Ah
curY	equ	8498h
customHeight	equ	8612h
cxCurApp	equ	84EFh
cxErrorEP	equ	84EAh
cxMain	equ	84E2h
cxPage	equ	84EEh
cxPPutAway	equ	84E4h
cxPrev	equ	84F0h
cxPutAway	equ	84E6h
cxRedisp	equ	84E8h
cxSizeWind	equ	84ECh
deltaX	equ	951Eh
deltaY	equ	9527h
dImageWidth	equ	8A42h
DspMatRow	equ	9A99h
editBtm	equ	9A88h
editCursor	equ	9A84h
editDat	equ	9A96h
editSym	equ	9A94h
editTail	equ	9A86h
editTop	equ	9A82h
EQS	equ	9B9Ah
equ_edit_save	equ	8485h
errNo	equ	854Ah
errOffset	equ	854Dh
errSP	equ	854Bh
flags	equ	855Bh
fmtConv	equ	9B80h
fmtDigits	equ	9B3Eh
fmtIndex	equ	9B94h
fmtLeft	equ	9B92h
fmtMatMem	equ	9B98h
fmtMatSym	equ	9B96h
fmtString	equ	9B3Fh
fOutDat	equ	85A5h
fpBase	equ	9BB0h
FPS	equ	9BB2h
fracCol   equ  9C12h 
fracRow  equ  9C13h 
fracUnderPtr equ 9C09h
freeSaveX	equ	8E9Ah
freeSaveY	equ	8E99h
GU	equ	9B1Ah
GV	equ	9B1Bh
GW	equ	9B1Ch
GX1	equ	9B0Eh
GX2	equ	9B0Fh
GX3	equ	9B10h
GX4	equ	9B11h
GX5	equ	9B12h
GX6	equ	9B13h
GY0	equ	9B0Dh
GY1	equ	9B04h
GY2	equ	9B05h
GY3	equ	9B06h
GY4	equ	9B07h
GY5	equ	9B08h
GY6	equ	9B09h
GY7	equ	9B0Ah
GY8	equ	9B0Bh
GY9	equ	9B0Ch
header	equ	83EAh
higLstRow	equ	9A92h
higLstRowh	equ	9A95h
higMatCol	equ	9A90h
higMatRow	equ	9A91h
iMathPtr1	equ	8486h
iMathPtr2	equ	8488h
iMathPtr3	equ	848Ah
iMathPtr4	equ	848Ch
iMathPtr5	equ	848Eh
indicBusy	equ	84DFh
indicCounter	equ	84DEh
indicMem	equ	84D6h
inputDat	equ	9562h
inputSym	equ	9560h
insDelPtr	equ	8494h
iodata	equ	83F3h
ioErrState	equ	83E9h
ioFlag	equ	83E6h
ioPrompt	equ	8A41h
kbdGetKy	equ	83DEh
kbdKey	equ	83DDh
kbdScanCode	equ	83D8h
keyExtend	equ	83DFh
lastEntryPTR	equ	8ECEh
lastEntryStk	equ	8ED0h
LastName	equ	9AFEh
lcdTallP	equ	8ECAh
lFont_record	equ	84A3h
ListNameBuffer	equ	9A9Fh
lower	equ	9542h
menuActive	equ	84B3h
menuAppDepth	equ	84B4h
MenuCurrent	equ	84B5h
monQH	equ	850Eh
monQT	equ	850Fh
monQueue	equ	8510h
nameBuff	equ	847Ah
newDataPtr	equ	9BC0h
nMax	equ	943Ch
nMin	equ	9457h
Num1stList	equ	9A9Dh
NumCurList	equ	9A9Eh
numEdTbl	equ	9A8Eh
numLastEntries	equ	90D0h
NumOfList	equ	9A9Ch
onSP	equ	8520h
OP1	equ	842Bh
OP1M	equ	842Dh
OP2	equ	8436h
OP2EXT	equ	843Fh
OP2M	equ	8438h
OP3	equ	8441h
OP3M	equ	8443h
OP4	equ	844Ch
OP4M	equ	844Eh
OP5	equ	8457h
OP5M	equ	8459h
OP6	equ	8462h
OP6EXT	equ	846Bh
OP6M	equ	8464h
OPBase	equ	9BB4h
OPS	equ	9BB6h
penCol	equ	89DFh
penRow	equ	89E0h
pixWide_m_1	equ	8ECCh
pixWide_m_2	equ	8ECDh
pixWideP	equ	8ECBh
plotSScreen	equ	9737h
PlotStart	equ	9433h
PlotStep	equ	947Bh
prevData	equ	9564h
prevDData	equ	849Bh
ProgCurrent	equ	84C1h
progPtr	equ	9BBEh
progToEdit	equ	8472h
promptBtm	equ	89B0h
promptCol	equ	89A3h
promptCursor	equ	89ACh
promptIns	equ	89A4h
promptRet	equ	89A6h
promptRow	equ	89A2h
promptShift	equ	89A5h
promptTail	equ	89AEh
promptTop	equ	89AAh
promptValid	equ	89A8h
pTemp	equ	9BBCh
pTempCnt	equ	9BB8h
ramCode	equ	8100h
ramCodeEnd	equ	822Fh
ramReturnData	equ	8529h
ramStart	equ	8000h
rclQueue	equ	84D2h
rclQueueEnd	equ	84D4h
saveSScreen	equ	8A52h
seed1	equ	9A37h
seed2	equ	9A40h
sFont_record	equ	84ABh
shortX	equ	9530h
shortY	equ	9539h
smallEditRAM	equ	949Fh
sndRecState	equ	83E8h
statVars	equ	8D58h
symTable	equ	0FE66h
TblMin	equ	9676h
TblStep	equ	967Fh
tempMem	equ	9BAEh
tempSwapArea	equ	8295h
textShadAlph	equ	8996h
textShadCur	equ	8993h
textShadIns	equ	8997h
textShadow	equ	8913h
textShadTop	equ	8995h
ThetaMax	equ	9406h
ThetaMin	equ	93FDh
ThetaStep	equ	940Fh
TmaxPar	equ	9421h
TminPar	equ	9418h
tokLen	equ	85A3h
tokVarPtr	equ	85A1h
Tstep	equ	942Ah
tSymPtr1	equ	9BA6h
tSymPtr2	equ	9BA8h
u0	equ	9445h
u02	equ	9460h
unMax	equ	936Ah
unMin	equ	9385h
upDownPtr	equ	8496h
uPlotStart	equ	9361h
uPlotStep	equ	93A9h
upper	equ	954Bh
userMem	equ	9C37h
userMenuSA	equ	89E1h
uThetMax	equ	9334h
uThetMin	equ	932Bh
uThetStep	equ	933Dh
uTmax	equ	934Fh
uTmin	equ	9346h
uTStep	equ	9358h
uu0	equ	9373h
uu02	equ	938Eh
uv0	equ	937Ch
v02	equ	9397h
varClass	equ	89BBh
varType	equ	89B2h
w0	equ	9472h
w02	equ	948Dh
winAbove	equ	9B38h
winBtm equ    9B34h
winLeftEdge   equ    9b35h
winCol	equ	9B3Ch
winTop equ    9B33h
winLeft	equ	9B36h
winRow	equ	9B3Ah
XOutSym	equ	9558h
Xres_int	equ	951Dh
XresO	equ	9484h
Xscl	equ	93D9h
YFact	equ	9514h
Ymax	equ	93EBh
Ymin	equ	93E2h
YOffset	equ	8EC9h
YOutDat	equ	955Eh
YOutSym	equ	955Ch
Yscl	equ	93F4h

;SYMBOLIC_DEBUG_END


;===========================================================
;
;  TI-73 Graphics Calculator
;
;  Equates and macros
;
;===========================================================

;========== RAM area sizes
stackSize	equ	400
LastEntryStkLen EQU     128

;========== Automatic Power Down time out value (<= 7 minutes)
APDTimeout	equ	5		;automatic power down time (minutes)

;========== I/O ports
BPort           equ     0		; 4-bit link port (i/o) 
kbdPort 	equ	1		; keyboard port (i/o)
syscnfPort	equ	4		; system configuration (out)
syscnf2Port	equ	5		; sys config 2 output (out)
recBufPort	equ	5		; receive buffer (in)
memPageAPort	equ	6		; Memory page A	(i/o)
memPageBPort	equ	7		; Memory page B	(i/o)
LCDINSTPORT     equ     10h
LCDDATAPORT     equ     11h 


;
; macro to call base code from an app, define EXT_APP if app is loaded
; externally (brt_call) otherwise will use internal call.
B_CALL macro   label
	     rst     rBR_CALL
	     dw      _&label
       .endm

BCZ macro   label
    jr  nz,$+5
    rst rBR_CALL
    dw  _&label
    .endm

BCNZ macro label
    jr z,$+5
    rst rBR_CALL
    dw _&label
    .endm

B_JUMP macro   label
	     call    BRT_JUMP0	     ; fixed location on page 0
	     dw      _&label
       .endm
AppOnErr   macro   handaddr
	LD	HL,handaddr		;hl -> stack handler address
	CALL	APP_PUSH_ERRORH 	;establish error handler context
	.endm

AppOffErr  macro
	CALL	APP_POP_ERRORH		;remove error handler context
	.endm

;

intrptClrPort	equ	2		; interrupt clear port (out)
intrptEnPort	equ	3		; interrupt enable (in/out)
intrptStatPort	equ	4		; interrupt status (in)
LbdDiscPort	EQU	2		; Battery voltage (in)
d0ld1l		equ  03h
d0ld1h		equ  01h
d0hd1l		equ  02h
d0hd1h		equ  00h

d0d1_bits	equ	03h
CSAB_RAM	equ	040h		; AS0/BS0 (memPageAPort/memPageBPort)
;intrptClrPort	equ	3		; interrupt clear port (out)
intrptEnPort	equ	3		; interrupt enable (out)
;intrptStatPort	equ	3		; interrupt status (in)
;LbdDiscPort	EQU	14h		; Battery voltage (in)
;D0D1_BITS	equ	0Ch
CSROM		equ	00000000b	;chip select ROM
mempagePort	EQU	2		; memory page port
PAGEB		EQU	00001000b	; SELECTS PAGE B IN MEMPAGEPORT = 1
CSRAM           equ     10000000b       ;chip select RAM
CSAB_RAM	equ	040h		; not on 83, just so no errors in assembly
;
;
;========== LCD display RAM
PixWide         equ     96              ;Number of pixels wide
LCDWide         equ     12              ;Byte width of screen
LCDTall 	equ	64		;Number of pixels tall

;========== System configuration
MM0		equ	00000000b	;memory map option 0
MM1		equ	00000001b	;memory map option 1
DC16		equ	00000000b	;1/16 duty cycle
DC32		equ	00000010b	;1/32 duty cycle
DC48		equ	00000100b	;1/48 duty cycle
DC64		equ	00000110b	;1/64 duty cycle

;========== LCD location and memory speed
slowRAM         equ     00001000b       ;memory speed
fastRAM         equ     00000000b
slowROM         equ     00010000b
fastROM         equ     00000000b
; 
RESCTL_1	equ	00100000b	; RESCTL Always HIGH
BCA_1		equ	01000000b	; BCA = 1 unless OFF (ON Key enabled)
BCA_0_MASK	equ	10111111b	; Mask to turn BCA off
WAIT_STATES	equ	fastRAM+slowROM+RESCTL_1+BCA_1 ;May be able to use fastRAM+fastROM

;========== Interrupt equates
iON		equ	0001b		;ON key
iAPD		equ	0010b		;APD frame pulse
bKBD		equ	2		;key board intrpt bit
iKBD		equ	0100b		;key press
iLCD		equ	1000b		;LCD on (output)
iONkey		equ	1000b		;ON key pressed (input)
iDBUS		equ	10000b		;enable D-BUS activity to interrupt
bDBUS		equ	4

iAll            equ     iLCD+iAPD+iON

;========== Common subroutine RST numbers
rOP1TOOP2	equ	08h
rFINDSYM	equ	10h
rPUSHREALO1     equ     18h
rMOV9TOOP1	equ	20h
rBR_CALL	equ	28h
rFPADD		equ	30h

;========== Fixed location entry points on page 0 
BRT_JUMP0	equ	50h
WARMUP0 	equ	53h
BASE_ID 	equ	56h	; FF A5 FF initially, 5A A5 FF after load
APP_PUSH_ERRORH equ	59h
APP_POP_ERRORH	equ	5Ch
RESERVED_BASE3	equ	5Fh	; reserved
BASE_VERS	equ	62h	; ASCIZ String for About screen

;========== Automatic power-down timer pulse
APDPS           equ     100             ;APD pulses per second
APDMax		equ	((APDPS*60)/256)*APDTimeout+1
batt_bit	equ	0

;Graph style definition:
GSline          equ     0		;Func, Param, and Polar modes default
GSthick         equ     1
GSabove         equ     2
GSbelow         equ     3
GSpath          equ     4
GSanimate       equ     5
GSdot           equ     6		;Recursive mode default

;========== Keyboard
kbdWURLong	equ	APDPS/2 	;time until initial kbd repeat
kbdWURShort	equ	APDPS/10	;time until next kbd repeat
kbdDebncMax	equ	5		;number of APDs to count until valid scan code

skDown          EQU	01h
skLeft          EQU	02h
skRight         EQU	03h
skUp            EQU	04h
skEnter         EQU	09h
skAdd           EQU	0Ah
skSub           EQU	0Bh
skMul           EQU	0Ch
skDiv           EQU	0Dh
skPower         EQU	0Eh
skClear         EQU	0Fh
skChs           EQU	11h
sk3             EQU	12h
sk6             EQU	13h
sk9             EQU	14h
skRParen        EQU	15h
skTan           EQU	16h
skVars          EQU	17h
skDecPnt        EQU	19h
sk2             EQU	1Ah
sk5             EQU	1Bh
sk8             EQU	1Ch
skLParen        EQU	1Dh
skCos           EQU	1Eh
skPrgm          EQU	1Fh
skStat          EQU	20h
sk0             EQU	21h
sk1             EQU	22h
sk4             EQU	23h
sk7             EQU	24h
skComma         EQU	25h
skSin           EQU	26h
skMatrix        EQU	27h
skGraphvar      EQU	28h
skStore         EQU	2Ah
skLn            EQU	2Bh
skLog           EQU	2Ch
skSquare        EQU	2Dh
skRecip         EQU	2Eh
skMath          EQU	2Fh
skAlpha         EQU	30h
skGraph         EQU	31h
skTrace         EQU	32h
skZoom          EQU	33h
skWindow        EQU	34h
skYEqu          EQU	35h
sk2nd           EQU	36h
skMode          EQU	37h
skDel           EQU	38h
;========== Cursor
curRate         equ     50              ;cursor flash rate in frame pulses

;========== Run indicators
busyPause	equ	10101010b
busyNormal	equ	11110000b

;========== Menu stack
menuAddr	equ	0		;address of menu structure
menuOffset	equ	2		;offset to first menu item
BsetFlag	equ	  6		;Blank	Set flag in MSBit-1 of offset
CsetFlag	equ	  7		;Custom Set flag in MSBit   of offset
menuOffsetMask	equ	  00011111b	;mask to offset
menuFlagsMask	equ	  11000000b	;mask to flags
menuHilite	equ	3		;menu window to highlight
menuElSize	equ	4		;size of one stack element
menuSysMax	equ	3		;maximum system menu depth
menuAppMax	equ	3		;maximum application menu depth

;========== Context stack
cxsMain 	equ	0		;application main entry point
cxsPPutAway	equ	2		;partial put away
cxsPutAway	equ	4		;put away
cxsRedisp	equ	6		;redisplay
cxsErrorEP	equ	8		;error handler
cxsSizeWind	equ	10		;change window size
cxsPage 	equ	12		;home ROM page
cxsCurApp	equ	13		;current application number
cxsAppFlags	equ	14		;application flags

;========== Number of equations
MaxFuncEqs      equ     4    ; maximum functions was 10 on 83, 4 on Carp.


;========== Flags
IODELFLAG       equ     0
INDELETE        equ       0           ; 1 = DELETE SCREEN, 0 = IO

STATFRQF        EQU       0
FRQ_NON_INT     equ       1           ; 1 IF A NON INTEGER FRQ IS ENTERED

trigFlags	equ	0		;Trigonometry mode settings
trigDeg 	equ	  2		; 1=degrees, 0=radians

kbdFlags	equ	0		;Keyboard scan
kbdSCR		equ	  3		; 1=scan code ready
kbdKeyPress	equ	  4		; 1=key has been pressed

DoneFlags	equ	0		;display "Done"
DonePrgm	equ	  5		; 1=display "Done" after prgm

INPRGMD         equ       6           ; IN PROGRAM NAME DISPLAY DURING DISPVNA
;
NTRCF           equ     0
USETRACESAVE    equ       7           ; 0 = NORMAL TRACE, 1 =USE OLD INCR

ConstFlags      equ     1               ;Constant flags.
ConstQueued     equ       0             ; 1=Const qeued output into edit buffer

EditorFlags	equ	1		;editor flags
editFlags	equ     1
noedit		equ	  1		; 0=normal edit, 1=results screen
editOpen	equ	  2		; 1=edit buffer is open

ansFlags	equ	1		;Ans buffer flags
ansScroll	equ	  3		; 1=Ans buffer can be scrolled

monFlags	equ	1		;monitor flags
monAbandon	equ	  4		; 1=don't start any long process in put away (#715)
monAppInit	equ	  5		; 1=application is being initialized
monGraphInit	equ	  6		; 1=entering graph from editor (see bug #210)
monResetStacks	equ	  7		; 1=reset FP and OP stacks after putaway

plotFlags	equ	2		;plot generation flags
plotTrace	equ	  0		; 0=not active, 1=active
plotLoc 	equ	  1		; 0=bkup & display, 1=display only
plotDisp	equ	  2		; 1=plot is in display, 0=text in display

PATFLAGS        EQU       2

SPECTRACE        equ       3

grfModeFlags	equ	2		;graph mode settings
grfFuncM	equ	  4		; 1=function graph
grfPolarM	equ	  5		; 1=polar graph
grfParamM	equ	  6		; 1=parametric graph
grfRECURM       equ       7             ; 1=RECURSION graph

graphFlags	equ	3
graphDraw	equ	  0		; 0=graph is valid, 1=redraw graph
graphProg	equ	  1		; 0=normal, 1=graph in progress
graphCursor	equ	  2		; 0=cursor off, 1=cursor on
graphExpr	equ	  3		; 0=normal, 1=parsing SHADE or DRAW
graphPan	equ	  4		; 0=right arrow pan, 1=left arrow pan
graph1stVar     equ       5             ; 0=not, 1=restart dependent variable
graphInd	equ	  6		; 1=independent variable is invalid
graphDep	equ	  7		; 1=dependent variable is invalid



grfDBFlags	equ	4
grfDot		equ	  0		; 0=line, 1=dot
grfSimul	equ	  1		; 0=sequential, 1=simultaneous
grfGrid 	equ	  2		; 0=no grid, 1=grid
grfPolar	equ	  3		; 0=rectangular, 1=polar coordinates
grfNoCoord	equ	  4		; 0=display coordinates, 1=off
grfNoAxis	equ	  5		; 0=axis, 1=no axis
grfLabel	equ	  6		; 0=off, 1=axis label
zoomPrevVal	equ	  7		; 0=zoom previous invalid, 1=valid

textFlags	equ	5		;Text output flags
textLeft	equ	  0		; 1=small char in left nybble, 1=right
textEraseBelow	equ	  1		; 1=erase line below small char
textScrolled	equ	  2		; 1=screen scrolled
textInverse	equ	  3		; 1=display inverse bit-map
textInsMode	equ	  4		; 0=overstrike, 1=insert mode

numFlags	equ	5		;number entry flags
numChanged	equ	  5		; 1=number entry changed
numPreClr	equ	  6		; 1=must pre-clear num edit field
numMatAlloc	equ	  7		; 1=matrix widths table allocated

PARSFLAG1	equ	6		;PARSER FLAGS
AddRParen       equ       0             ; 1=Add Right Paren in a frac string.
ARNAME          equ       1             ; 1=CREATE NAME ARRAY,0=REAL ARRAY
;
;       DANGER PARSER WILL CLEAR THESE, CODE CHANGES REQUIRED TO USE
;
;                equ       2
;                equ       3
;                equ       4
TrueMixed       equ      2      ;tFracSlash was preceeded by a #.
OpenUnit        equ      3      ;tUnit has been parsed.
OpenFrac        equ      4      ;tFracSlash has been parsed.

OPENL		equ	  5		; 1=STARTED LIST ({)
OPENV		equ	  6		; 1=STARTED VECTOR ([)
OPENM		equ	  7		; 1=STARTED MATRIX ([[)

parseFlag2	equ	7		;PARSER FLAGS
NUMOP1		equ	  0		; 1=RESULT IN OP1, 0=NO RESULT
FINTF		equ	  1		; 1=INTEGRAL ACTIVE

solverF         equ       2             ; 1=SOLVER ACTIVE
MINMAXF         equ       3             ; 1=FMIN/FMAX ACTIVE
DERIVCMP	equ	  4		; 1=do not reuse temps during deriv
SEQEVF          equ       5             ; 1=EVAL WITH SEQ ACTIVE
SEQF		equ	  6		; 1=sequence active
EVALFF		equ	  7		; 1=evalF active

NEWDISPF        equ     8               ;Derivative mode flags
PRECLRFORMODE   equ       0             ; 1=HELP BLINK ON MODE SCREEN
PROGEXECUTING   equ       1             ; 1=USER PROGRAM EXECUTING

APDFlags	equ	8		;Automatic power-down
APDAble 	equ	  2		; 1=APD enabled
APDRunning	equ	  3		; 1=APD clock running
APDWarmStart	equ	  4		; 0=reset when "ON" pressed
;					; 1=warmstart when "ON" pressed
WEBERRS         EQU       8
;
;       2 BIT FLAGS : 00 = NOT EXECUTING A WEB
;                     01 = EXECUTING u WEB
;                     10 = EXECUTING v WEB
;                     11 = EXECUTING w WEB
;
;               RECUR N IS INVALID FOR ALL NON 0 CASES
;
WEB_ERR_FLAG    EQU       5           ;
WEB_ERR_FLAG1   EQU       6           ;

web_err_mask    equ       60h


EXECWEBG         equ       5          ; WEB GRAPH EXECUTING, ERR ON n, AND ...
ERRUN1           equ       6          ; 1 = ERR ON Un1, 0 = ERR ON VN1

PATFLAGS2        EQU       8

GCOORDOK        EQU        7


prgmFlags	equ	9		;program editor flags
prgmEdit	equ	  0		; 1=in program editor
prgmEval	equ	  1		; 1=evaluate input buffer

onFlags 	equ	9		;on key flags
onClearScrn	equ	  2		; 1=[OFF] clears "Mem cleared" message
onRunning	equ	  3		; 1=calculator is running
onInterrupt	equ	  4		; 1=on key interrupt request

statFlags	equ	9		;statistics flags
stat1		equ	  5		; 0=stat2 mode, 1=stat1 mode
statsValid	equ	  6		; 1=stats are valid
statANSDISP     equ       7             ; 1=length mismatch warning submode

fmtFlags	equ	10		;numeric format flags
fmtExponent	equ	  0		; 1=show exponent, 0=no exponent
fmtEng		equ	  1		; 1=engineering notion, 0=scientific
fmtHex		equ	  2		; 1=hexadecimal
fmtOct		equ	  3		; 1=octal
fmtBin		equ	  4		; 1=binary
;
NUMMODE         EQU       10
FMTREAL         EQU       5
FMTRECT         EQU       6
FMTPOLAR        EQU       7

REALMODE        EQU       5
RECTMODE        EQU       6
POLARMODE       EQU       7
;					;   if Hex and Oct both = 1
;					;   then Bin=0 means >Frac
;					;	 Bin=1 means >DMS
fmtBaseMask     equ         00011100b   ; mask to base flags
fmtBaseShift    equ         2           ; offset to base flags
;
;       CHECK IF THESE ARE USED BY NUMFORM,
;
;                equ       6
;               equ       7

fmtOverride	equ	11		;copy of fmtFlags with conversion override

fmtEditFlags	equ	12		;numeric editing flags
fmtEdit 	equ	  0		; 1=format number for editing
fmtDecPnt	equ	  1		; 1=decimal point has been displayed

curFlags	equ	12		;Cursor
curAble 	equ	  2		; 1=cursor flash is enabled
curOn		equ	  3		; 1=cursor is showing
curLock 	equ	  4		; 1=cursor is locked off

cmdFlags	equ	12		;command editor flags
cmdVirgin	equ	  5		; 1=nothing has been typed in cmd bfr
cmdExec		equ	  6		; 1=parser is executing command
cmdEquErr	equ	  7		; 1=force edit an equation

appFlags	equ	13		;application flags
appWantIntrpt	equ	  0		; 1=want ON key interrupts
appTextSave	equ	  1		; 1=save characters in textShadow
appAutoScroll	equ	  2		; 1=auto-scroll text on last line
appMenus	equ	  3		; 1=process keys that bring up menus
					; 0=check Lock menu flag
appLockMenus	equ	  4		; 1=ignore menu keys
					; 0=switch to home screen and bring up menu
appCurGraphic	equ	  5		; 1=graphic cursor
appCurWord	equ	  6		; 1=text cursor covers entire word
appExit 	equ	  7		; 1=application handles [EXIT] key itself

appWantIntrptF	equ	1<<appWantIntrpt
appTextSaveF	equ	1<<appTextSave
appAutoScrollF	equ	1<<appAutoScroll
appMenusF	equ	1<<appMenus
appLockMenusF	equ	1<<appLockMenus
appCurGraphicF	equ	1<<appCurGraphic
appCurWordF	equ	1<<appCurWord
appExitF	equ	1<<appExit

scrollFlags	equ	14		;scrolling flags
scrollEL	equ	  0		; 1=ellipsis has been drawn on left
scrollER	equ	  1		; 1=ellipsis has been drawn on right
scrollAT	equ	  2		; 1=arrow has been drawn at top
scrollAB	equ	  3		; 1=arrow has been drawn at bottom
scrollLeft	equ	  4		; 1=object can be scrolled left
scrollRight	equ	  5		; 1=object can be scrolled right

res16Flags	equ	14		;16-digit results flags
addRes16	equ	  6
mltRes16	equ	  6
divRes16	equ	  6
sqrtRes16	equ	  6

rclFlags	equ	14		;RCL flags
rclQueued	equ	  7		; 1=RCL queued output into edit buffer


SEQFLAGS        equ     15              ; SEQUENTIAL GRAPH FLAGS
WEBMODE         EQU       0             ; 0 = NORMAL SEQ MODE, 1 = WEB MODE
WEBVERT         EQU       1             ;
SEQUV           EQU       2             ; U vs V
SEQVW           EQU       3             ; V vs W
SEQUW           EQU       4             ; U vs W
WEB1ST          EQU       5
BeginOn 	equ	  7		; 1=begin on key

LISTFLAG        EQU     15		; LIST FLAG
LSTTYPE         EQU       6

monSFlags	equ	16		;monitor string flags (flags 0..7 reserved)

promptFlags	equ	17		;prompt line flags
promptEdit	equ	  0		; 1=editing in prompt buffer
IOPROMPTPRGM    equ       1             ; 1=IO PROMPT FOR PROG NAME

PLOTFLAG2       EQU       17

PLOTFIT         equ       2
EXPR_PARAM      equ       3           ; 1 = SIGNAL WRITING Xt EQUATION IN TRACE
EXPR_WRITING    equ       4           ; 1 = DOING EXPR WRITEING TO GRAPH

menuFlags	equ	17		;menu system flags
menuNames       equ       5             ; 1=program names menu.
ConvFrom        equ       6             ; 1=have entered a from conversion.

ConstFlag       equ     17
CountValid      equ       7             ;1 if count is valid, 0 if invalid.


indicFlags	equ	18		;Indicator flags
indicRun	equ	  0		; 1=run indicator ON
indicInUse	equ	  1		; indicator save area in use=1, free=0
indicOnly	equ	  2		; interrupt handler only checks run indicator

shiftFlags	equ	18		;[2nd] and [ALPHA] flags
shift2nd	equ	  3		; 1=[2nd] has been pressed
shiftAlpha	equ	  4		; 1=[ALPHA] has been pressed
shiftLwrAlph	equ	  5		; 1=lower case, 0=upper case
shiftALock	equ	  6		; 1=alpha lock has been pressed
shiftKeepAlph	equ	  7		; 1=cannot cancel alpha shift

NEWFLAGS        equ     19              ; NEWFLAGS
;
YEQCURSEL       equ       0             ; 1=CURSOR ON EQU SELECTS IN Y= EDITOR
PrmptNameEntered  equ       1           ; 1=NAME ENTERED DURING RCL PROMPT      t
WinItem         equ       2             ; In window 1=Format, 0=range
HISTTRACE       equ       3             ; 0 = DRAW HIST, 1 = TRACE HIST
;
tblFlags        equ     19              ;table flags.
AutoFill        equ       4             ; 1=prompt, 0=fillAuto
AutoCalc        equ       5             ; 1=prompt, 0=CalcAuto
reTable         equ       6             ; 0=table is ok, 1=must recompute table.
SAVEDGRAPHDRAW  equ       7             ; 1=GRAPH DRAW WAS SET
;
;

FRACMODE        equ      20             ;FRAC FLAGS
ABCF            equ       0             ; a b/c if 1, b/c if 0.
AUTOSIMPF       equ       1             ; autosimp if 0, mansimp if 1.
ManSimpF        equ       1             ; autosimp if 0, mansimp if 1.

ConstMode       equ     20
Hide            equ       2            ;0 if show, 1 if hide.
Multi           equ       3            ;0 if single, 1 if multiple.

;
sGrFlags EQU 20
WRITE_ON_GRAPH  EQU       4     ; 1 = TEXT OR EQU WRITING TO GRAPH SCREEN
G_STYLE_ACTIVE  EQU       5     ; 1 = GRAPH STYLES ARE ENABLED, USE THEM
CMP_MOD_BOX     equ       6     ; 1 = DOING MOD BOX PLOT COMPUTATION
textWrite       equ       7
;
BOXFLAG EQU     20
;
;
NEWINDICFLAGS   equ     21
extraIndic      equ       0
saindic         equ       1
;

NEWFLAGS3       equ     21
tmpcalc         equ       2             ; in Table set, temp val of autocalc.
DISP_ALT_STATS  equ       3             ; 1 = USE ALTERNATE LIST OF STAT
;                                             RESULTS FOR SOME COMMANDS

;
GSFLAG2         EQU     21
GR_ABOVE_BELOW  EQU       4           ; 1 = GRAPHED ABOVE/BELOW STYLE, NO PAN

tblFlags2       equ     21              ;more Table Flags.
ClrTblInd       equ       5             ; 1=clear independent variables.
DspTblPause     equ       6             ; 1=in prog exec with table displayed
TBLRCLYED       EQU       7             ; 1 = DOING RECALL IN TBL, Y EDIT
;
;
batteryFlags    equ     22              ;battery detention flags
inKeyScn        equ       0             ; 1=in keyscan
keyPressInt     equ       1             ; 1=Key Press interupt
batt_notdisc    equ       2             ; 0=power is disconnected
keyPressMask    equ       00000010b     ; mask bit for key press interrupt
;
NEWFLAGS2       EQU       22
CMPBOXPLOT      EQU        3          ; IN CMPMED WE ARE DOING BOX PLOT CMP
CMPMEDONLY      EQU        4          ; IN CMPMED WE ARE DOING MEDIAN ONLY
NORESTORES      EQU        5          ; DON'T RESTORE SCREEN IN MENUS, IF NOT 0
TmpSplit        equ        6          ; In Mode, saved value of grfSplit
PROGSNDLP       EQU        7
;
SMARTFLAGS      EQU       23
;
; fix these equates if smartfalgs are moved
;
smarter_mask    equ       3
smarter_test    equ       1
SMARTGRAPH      EQU       0
SMARTGRAPH_INV  EQU       1
;
GRAPHFLAGS2     EQU       23
;
TRACEPROMPT     equ       2           ; 1 IF PROMPTING FOR A TRACE VALUE
ERROR_IN_TRC_P  equ       3           ; 1 IF ERROR OCCURRED IN TRACE PROMPT
MATH_TO_EVAL    equ       4           ; 1 IF SWITCH AFTER GR MATH TO EVAL RES
SET_DEP_VALUES  equ       5           ; 1 IF TRACE LOOP SETS DEPENDS ONLY
PANNED_ONCE     equ       6           ; 1 IF PANNED IN TRACE, ONLY 1 PER ARROW
CURINC_IS_NEG   equ       7           ; 1 IF BYTE @@ CURINC = NEG, XITOF ONLY

ExprFlags       equ       24            ;new flag for expression in Format
ExprBitOff      equ        0            ;0=On, 1=Off
FreqListEdit    equ        1            ;1= in freq list edit
InPAPD		equ	   2		;1=in PAPD, set at 1st PAPD and
					;           reset at end 2nd PAPD
MORE_STAT       EQU       24
EX_STD_VAR      EQU       3           ; 1 = EXECUTING STD OR VARIANCE IN ONE
EX_SV_POP       EQU       4           ; 1 = population STD,VAR; 0=sample(n-1)

TRCF1   EQU     24
REPEAT_POINT    EQU       5           ; 1 = TRACE TO REPEAT CURRENT POINT

GStypeFlag	equ	24		;flag for graph stype edit
DREW_PATH_BOX   EQU      6              ;DID PATH OR ANIMATE IN GRAPHING
GSFlag		equ	 7		;1=in graph stype editor
;
SolvFlags       equ     25              ;flags for Solver editor
modeSolve	equ      0
solvBalanced    equ      1              ;1 if have a balanced equation.
solvEqn         equ      2              ;1 if editing the equation in solver.
haveSolVar      equ      3              ;1 if have a valid SolVar.
OnSolvLine      equ      4              ;1 if on solve line.

LstFlags        equ     25              ;flag for List editor
redispLst       equ      5              ;1=redisp list in list editor
FormulaErr      equ      6              ;1=error in the list formula

SetVarFlags     equ     25              ;flags for setmenu cmd in prgrm exec.
InSetVar        equ      7

;
;
;
;**************************************************************************
;
MORE_FLAGS      EQU       26

DIAGNOSTIC      EQU       0           ; 0 = NO DIAG DISP, 1 = DIAG DISP ACTIVE

TWOVAR_CHANGE   EQU       1           ; 1 = 2 VAR STAT CHANGE WINDOW ZSTAT
STORE_REGEQ     EQU       1           ; 0 = NO REGEQ TO STORE, 1 = STORE

NO_DEL_STAT     EQU       2           ; 0 = OK TO DELRES, ELSE DON'T
NO_DEL_FORM     EQU       3           ; 1 = LET LIST STORE, NO DELETE FORMULA

ZMSTAT_CHANGE   EQU       4           ; TEMP, 1 = ZM STAT CHANGED WINDOW
TMPVERTSPLIT    EQU       4           ; TEMP COPY OF VERT SPLIT DURING MODE

NORMPLOT_X      EQU       5           ; 1 = NORMPLOT DATA ON X-AXIS
;
ZMSTAT_HIST     EQU       6           ; 1 = HIST CHANGED WINDOW ONLY ZSTAT
;
CONSTED         EQU       7           ; 1 = IN CONSTANT EQUATION EDITOR.


;
LINKFLAG        EQU       27
;
GET_CALC        EQU       0           ; 0=GET FROM CLB; 1=GET FROM CALC
TI85_LINK       EQU       1           ; 1=TI85 COMMUNICATION
TI82_LINK       EQU       2           ; 1=TI82 COMMUNICATION

GR_TBL_FLAG     EQU       27
INIT_TBL_TOP    EQU       3           ; VERT GR-TBL TRACE NEW TOP OF TABLE
RIGHT_ARROW     EQU       4           ; VERT GR-TBL TRACE RIGHT ARROW
LEFT_ARROW      EQU       5           ; VERT GR-TBL TRACE LEFT ARROW
INIT_TBL        EQU       6           ; VERT GR-TBL TRACE INIT TABLE

LIST_COL_DIRTY  EQU       27
COL1_DIRTY      EQU       3           ; 1 = COL FORMULA UNEXECUTED.
COL2_DIRTY      EQU       4
COL3_DIRTY      EQU       5

TI83_LINK	EQU	  7	      ; 1=TI83 COMMUNICATION


;**************************************************************************
;inferential statistics editor flags:
INFFLAGS        EQU       28
INFALTF         EQU        0    ;2BIT FLAG:
;     infaltf   bits 0,1        ;00: <>;  01: <;  02: >;
INFPOOLF        EQU        2    ;0=pooled:NO;  1=pooled:YES;
INFINPF         EQU        3    ;0=inpt:Data;  1=inpt:Stats;
INPTCHGF        EQU        4    ;inpt has changed DATA<>STATS.
INFDRAWF        EQU        5    ;0=normal Calc; 1=Draw;
MATEDITF        EQU        5    ;1=editing a matrix.
INFCMDF         EQU        6    ;Set to tell cmd screen to do stat display.
EQUEDITF        EQU        6    ;1=editing an equation name.
NAMEEDITF       EQU        7    ;1=editing a name.
;

GR_TBL_FLAG2    EQU       28
TBLTRACEf       EQU       7           ; 1 IF IN VERT TBL TRACE.

MENU_FLAGS	EQU	  29	;
AUTOREPEAT_F	EQU	   0    ;1=KEY FROM AUTO REPEAT
;
LST_RCL_F       EQU       29
LISTSNDLP       EQU       1     ; 1 = MONITOR SENDING A LIST NAME
;
ZSTATF          EQU       29
IN_ZM_STAT      EQU       2     ; 1 IF EXECUTING ZOOM STAT
;
NORM_F          EQU       29
NORMPLOT        EQU       3           ; 1 = NORMPLOT NOT SCTATTER OR XYLINE
;
tblFlags3       equ       29            ;more Table Flags.
LargeBotf       equ        4            ;large font display on bot line.
;
InfFlags2       equ       29            ;more Inferential Stat editing flags.
dsphigonly      equ        5            ;display highlites only on re-display.
;
;VERTFLAG2       EQU       29
;NEED_BUFCPY     EQU       6           ; 1 = GRBUFCPY NEEDED, VERT MODE ONLY
;NEED_RETABLE    EQU       7           ; 1 = NEED TO REDISP TABLE IN VERT MODE

SolvedFlag      EQU     30
HaveEqual       equ       0           ; 1   have '=' key (tsolveequal)
;
POWERFLAG       EQU       30
XRTYF           EQU       1           ; 1 = DOING XROOTY, 0 = YTOX
XINV            EQU       2           ; 1 = X INVERTED IN Y^X, 0 = NOT INVERTED
XINV_BIT        EQU       00000100b
;
RCLGDBFLG       EQU       30          ;
RCL_82_GDB      EQU       1           ; 1 = RCL A GDB CREATED BY TI-82
;
CPLXFLG         EQU       30
FROM_EXEC       EQU       3           ; 1 = FUNCTION ORIGINATED FROM EXECUTOR
;
VALUE_F         EQU       30
FROM_VALUE_PR   EQU       4           ; 1 = JUST CAME FROM VAL PROMPT
;
promptf2        equ       30
IOPROMPTLIST    equ       5           ; 1 = IO PROMPT FOR LIST NAME
;IOPROMPTAPPV    equ       6           ; 1 = IO PROMPT FOR AppVar Name
;
;AVAILABLE      equ       6
;
;sinregf         equ       30
;first_it        equ       6           ; =1 if 1st it in sinreg
;
GSTYLEF         EQU       30
SHADE_GS        EQU       7           ; 1 = GRAPH STYLE FROM SHADE
;
execflg         equ       31
exec_active     equ       0           ; 1 = already doing 'exec' function
;
G_T_FLG         EQU       31
TBL_REPEAT      EQU       1           ; 1 = TABLE REPEAT POINT
TBL_DSPGRTBL    EQU       2           ; 1 = IN DSPGRTBL G-T MODE
GRAPH_IN_TBL    EQU       3           ; 1 = IN TABLE CONTEXT AND GRAPHING
;
SEQ_TRC_FLG     EQU       31
SEQ_RESTART     EQU       4           ; 1 = RESTART SEQ AFTER TRC INPUT
;
IO_FLG_2        EQU       31
IO_KEYPRESS     EQU       5           ; 1 = KEY PRESS SENT IN LINK
;
REL_FIX_FLG     EQU       32          ; USE TO FIX RELEASED BUGS
;
asm_Flag1       EQU       33          ; ASM CODING
asm_Flag2       EQU       34          ; ASM CODING
asm_Flag3       EQU       35          ; ASM CODING
;
fracFlags	equ	  36		; fraction display/edit
fracStopEOS	equ	   0
fracInside	equ	   1
fracDontDraw	equ	   2
fracEditMode	equ	   3
fracInNum	equ	   4   ;In numerator
fracScrScrolled equ	   5
fracFlag1	equ	   6
fracClearEOS	equ	   7	   ; tell drawExpr code to clear to end of screen when done
;
fontFlags	equ	   37
fracDrawNum	equ	   0
fracDrawDenom	equ	   1
fracDrawLFont	equ	   2
fracTallLFont	equ	   3
fracLastChar	equ	   4
fracCursor	equ	   5
DrawLfont       equ       6
CustomFont      equ       7
;
;flags for fraction math routines:
FracFlags2      equ     38
DtoF10F         equ      0      ;10digit flag for Dec ->Frac
SimpKeyF        equ      1      ;Used for Simp K.
RatD1K          equ      1      ;also used to show denominator=1000
FinalType       equ      2      ;1=final type is improper 0=type is simple
FinalFrac       equ      3      ;set if final fraction result expected.
ManDtoF         equ      4      ;manual simp=1, Dec->frac bit.
ManForceS       equ      5      ;manual simp=1, Abc=0; force simplify anyhow.
ManAdjW         equ      6      ;manual simp=1, Abc=0; Adjust whole flag.
ManBin          equ      7      ;manual simp=1, Binop set.


;flags for fraction math routines:
FracFlags3      equ     39
FNormOver       equ      0      ;Fraction Normalization Override if set.
DivSmallNum     equ      1      ;set if Frac Numerator < denominator.
IntDivDisp      equ      2      ;integer divide display flag.
StrictInt       equ      3      ;strict integer check by intdiv if set.
yxRatF          equ      4      ;y^x rational approximation flag.
nid             equ      5      ;1 if non integer decimal
SimpDisp        equ      6      ;1 if need to display frac simplify factor.
HadTrueMixed    equ      7      ;at least one true fraction in an expression.
;(HadTrueMixed is needed by >Ab/c<>d/e so that if any mixed fraction, then
; if convert, will stay b/c if b/c mode & not convert back to mixed.)

;Flags for AlphaText routines:
AlphaTextFlags	equ	40
AlphaTextDone	equ	0	;1=Alpha Buffer contains data 
				;and is ready to be copied.						 
AlphaTexton     equ	1       ;1=indicate alpha screen is on.

;Flag for Stat Plot setup
PlotscaleFlag    equ     40
ITurnAxisOff	equ	   2    ;1= S/W turn Axis off
PlotScaleEdit 	equ	   3	;1= in stat plot scale edit
;

;Flag for display Trace Cursor for StatPlot Pictogram,Circle,
;                                  StemLeaf,Bar
NewSPTrcCurFlag  equ     40
NewSPTrcCur      equ      4     ;0=show original text/picture
                                ;1=show blank

;;Flag to indicate Circle plot is in display
;CirclePlotFlag   equ     40
;CirclePlotOn     equ     5      ;1=Circle Plot is in display

homeFlags3	  equ	  40
errInParse	  equ	  6
rclAnsD           equ     7     ;1 = recalling extra ans digits (>f<>d, Abc<>de


;
homeFlags	equ	41
pixCoord	equ	0	;1 if using pixel coords for output
homeHasFocus	equ	1	;1 if home screen has current focus
onEntry 	equ	2	;1 if currently on entry (not ans)
redrawing	equ	3	; 1 if in process of redrawing history
scrolledInHistory equ   4	; 1 if ever scrolled screen while navigating history
cmdWaitAns	equ	5	; 1 if waiting for Ans from parser
fracDrawMode	equ	6	; 1 if drawing an expr, 0 if editing
draw1D		equ	7	; 1 if draw exprs in 1D (linear)

;
rclFlags2	equ	42
rclKludge1	equ	0	; 1 if rclToQueue kludge needed

EPFlags 	equ	42	; For EPLine routine
negIncY 	equ	1	; negative delta Y
slopeGT1	equ	2	; slope > 1

FracFlags4      equ     42      ;yet more fraction flags
SimpKval        equ      3      ;1 if user does simp with a factor eg simp 4

menuFlags2	equ	42
extAppFlag	equ	4	; 1=external app name in menu

homeFlags2	equ	42
firstHomeIO	equ	5	; 1=first IO not done to home screen yet
rclToErr	equ	6	; 1=recalling for error goto
rclEdit2Q	equ	7	; rclVarToEdit 1=rclToQueue 0=rclToQueueInPlace

xapFlag0	equ	43	; external app flags
xapFlag1	equ	44
xapFlag2	equ	45
xapFlag3	equ	46

prgmFlag2       equ     47              ;program editor flags
InputListel     equ       0             ; 1=input statement with list element.

FORM_FLAG2	EQU	  47
FORM_CPLX_TOK	EQU	  1	      ; FORM CPLX WITH TOKENS NOT ASCII
                                      ; ONLY AFFECTS 'E^X(' '^' '(' ')'
BatteryFlag2    equ     47
batt_not_low    equ      2              ;1=not low, reuse with ZG_FLAG
;
GetSendFlg      equ       47
ComFailed       equ       3           ; 1 = Get/Send Communication Failed
;
SelftestFlg     equ       47
Ran_Selftest    equ       4           ; selftest ran

FracFlags5      equ     47      ;yet more fraction flags!
AbcdeFlag       equ      5      ;0 if 1st occurance of Abc<>de key.
;
PlotFlag3       equ      47
;
BufferOnly      equ      6            ; write to graph buffer only
;
;
Dialog_flag     equ      48           ; Dialog/App control flags
SendKeyToAPP    equ       0           ; 1= after getkey send key to application
AppValidatesKey equ       1           ; 1= App decides which keys are valid to
DialogStartValid  equ     2           ; 1 if use dialog start
;                                     ; send to it, called from monitor
;
CertFlags	equ	 49	      ;Certificate/App flags
DefragAppMem	equ	  0	      ;1=need to do defrag on app space
valError	equ	  1	      ;1=validation error
ExpireField	equ	  2	      ;1=license has expired date field
UnitCertList	equ	  3	      ;1=Doing a unit cert list load
;
APIFlg          equ       50
;
appAllowContext equ       0           ; App wants context changes to happen
appKillkey      equ       1           ; App wants this key press skipped
appSkipMon      equ       2           ; App wants raw key to skip mon process
appNoMenus      equ       3           ; App wants to suppress menus
appRunning      equ       4           ; Application is active
EventPassedUp   equ       5           ; Event was passed up from sub component
APIDisabled     equ       6           ; app doesn't want to us API
EventWasOverriden equ     7
;
APIFlg2         equ       51
;
appWantGetKey   equ       0           ; getkey hook active
appWantsIntrpt  equ       1           ; interrupt hook
appWantTurnOn   equ       2           ; turning on hook
appWantTurnOff  equ       3           ; turning off hook
appStayRunning  equ       4           ; Hooks active
appWantRawKey   equ       5           ; raw key press hook
;
APIFlg3         equ       52
;
ShutDown        equ       0           ; xappPutaway hit
SeditRunning    equ       1           ; small font editor active
appScreen       equ       2           ; app screen up/down
sEditVar        equ       3           ; start small edit with a var
app1stcol       equ       3           ; screen up/down
applastcol      equ       4           ; screen up/down
sEditRealOp1    equ       4           ; start small edit with real in op1
chardidntfit    equ       5           ; sputc
noupdatelast    equ       6
BowNoDisp       equ       7
;
apiFlg4         equ     53
;
appWantCursor   equ       0           ; cursor blink flag
CellOverride    equ       1           ; user applet wants to override cell
fullScrnDraw    equ       2           ; draw into last row/col of screen
OverrideGetStruct equ     3
RectTobuff      equ       4
xOffScreen      equ       5
Sedalphabox     equ       6



curComponentFlag  equ     54
;
MouseFlag         equ     55
MouseEnable       equ     0           ; 1 if mouse is active
MouseShowing      equ     1           ; 1 if mouse is painted on screen
MouseErase        equ     2
NewbyteR          equ     3
NewbyteL          equ     4
movedup           equ     5
moveddown         equ     6
updaterepaint     equ     7

Mouseflag2      equ       56
movedleft       equ       0
movedright      equ       1
paintonly       equ       2
rstrtoram       equ       3
updateonly      equ       4


;


;IconFlg:          equ       55
;ustomIconStr     equ   6             ; use custom string for icon
;ustomIconImag    equ   7             ; use custom image for icon
;
;
;       flag bytes 56 - 69 are for expansion
;
;

flagRes         equ     70      ;number of flag bytes





;========= Variable type flags
varTypeMask     equ     1Fh             ;mask to variable type
varGraphSlct	equ	5		;=1 if equation should be graphed
varGraphRef	equ	6		;=1 if var is ref'ed in a graph equ
varMark 	equ	7		;=1 if var is marked for send/solve

;========= Floating point
FPLen           equ     9               ;length of a floating-point number

;========= Constant table equates
DRCONST 	equ	0
PI2CONST	equ	1
PI4CONST	equ	2
LOGECONST	equ	3
PICONST 	equ	4
DTORCONST	equ	5
LN10		equ	6

;========== Text screen
textRows	equ	8
textCols        equ     16

;========== LINK I/O
STSNDREC1STBYTE	equ	9

;========== Hardware stack
STACK	       equ	0FFF7H
;
;========== AlphaText Screen
AlphaBufferSize equ	16
;
;========== Msc Fraction Equates
mantsignbit     equ  7       ;msbit of data type byte is set if negative.
RedF            equ  1       ;reduced if 0, unreduced if 1.
UnRedF          equ  1       ;reduced if 0, unreduced if 1.
SimpF           equ  0       ;simple if 0, mixed if 1.
MixedF          equ  0       ;simple if 0, mixed if 1.
;
;========== Msc general equates
IDListMenuItem  equ  10
;
;
;========== Last entry/ans sizes
LASTENTRYSIZE	equ 512
LASTANSSIZE	equ 512

;
;====== Keyboard key names
;
;       KEY PRESSES THAT DO NOT ECHO INTO THE DISPLAY
;       AND ARE NOT APPLICATION OR MENU LOADING KEY PRESSES
;
kRight          equ       001h
kLeft           equ       002h
kUp             equ       003h
kDown           equ       004h
kEnter          equ       005h
kALPHAENTER     EQU       006h
kALPHAUP        EQU       007h
kALPHADOWN      EQU       008h
kClear          equ       009h
kDel            equ       00Ah
kIns            equ       00Bh
kRecall         equ       00Ch
kLastEnt        equ       00Dh
kBOL            equ       00Eh
kEOL            equ       00Fh
;
kSELALL         equ       010h
kUNSELALL       equ       011h
kLtoTI82        EQU       012h
kBACKUP         equ       013h
kRECIEVE        equ       014h
kLNKQUIT        equ       015h
kTRANS          equ       016h
kRENAME         equ       017h
kOVERW          equ       018h
kOMIT           equ       019h
kCONT           equ       01Ah
kLtoTI83        equ       01Bh
kSendApp        equ       01Ch
kvApps          equ       01Ch
kSendId         equ       01Dh
kSendSW         equ       01Eh
kvALL           equ       01Fh
kvSendType      equ       020h  ;send a particular data type (in kextend)
kNoWay          EQU       021h
kYes            EQU       022h
kAbout          equ       023h  ;about screen
kApp            equ       024h
;
kProgExec       EQU       025H
kListflag       equ       026h
;
;OPEN FOR EXPANSION       028h..02Bh
;

MENUSTART       EQU       02CH
;
;       KEY PRESSES THAT DO NOT ECHO INTO THE DISPLAY
;       AND ARE MENU SWITCHING KEY PRESSES
;
kAreYouSure     equ       02Ch
kPrgm           equ       02Dh
kZoom           equ       02Eh        ; PULL DOWN
kDraw           equ       02Fh
kSPlot          equ       030h
kStat           equ       031h
kMath           equ       032h
kTest           equ       033h
kAppsMenu       equ       034h
kVars           equ       035h
kMem            equ       036h
kConstSetmenu   equ       037h
kConvMenu       equ       038h
kTrigmenu       equ       039h
kLIST           equ       03Ah
kConstMenu      equ       03Bh
;
MENUEND         EQU       kConstMenu
;
kConst          EQU       03Ch
;
;
kAlpha          EQU       03Dh
kCATALOG        EQU       03Eh        ; catalog
kINPUTDONE      EQU       3FH

APPSTART        EQU       040h

;
;       KEY PRESSES THAT DO NOT ECHO INTO THE DISPLAY
;       AND ARE CONTEXT SWITCHING KEY PRESSES
;
kQuit           equ       040h
kLinkIO         equ       041h
kChkApps        equ       042h        ; Check Apps

kError          EQU       052H        ; ERROR
kExtApps        EQU       053h        ; Extra Applications.     NEW
kSolveRoot	equ	  054h        ; SOLVE EDITOR
kStatP          equ       055h        ; stat plot
kConsted        equ       056h        ; Constant equ Editor.
kPrgmSetVar     equ       057h        ; SetMenu in a Program.
kFormat         equ       058h        ; FORMAT
;
;
APPEND          EQU       kFormat
;
;       58h - 59h ARE EMPTY FOR GROWTH
;
ECHOSTART1      EQU       05Ah
;
;       CONDITIONAL KEYS THAT IF IN PROG EDIT WILL ECHO
;       OR IF NOT IN PROG EDIT GO TO THE GRAPH SCREEN
;       'TRACE' , 'ZOOMS'
;
;
kTrace          equ       05Ah
kZFIT           EQU       05Bh
kZIN            EQU       05Ch
kZOUT           equ       05Dh
kZPREV          equ       05Eh
kZBox           equ       05Fh
kZDECML         equ       060h
kSETZM          equ       061h
kZSQUAR         equ       062h
kZSTD           equ       063h
kZTRIG          equ       064h
kZQuad1         equ       065h
;kUSRZM          equ       065h
;kZsto           equ       066h
kZInt           equ       067h
kZSTAT          EQU       068h
;
;       CONDITIONAL KEYS THAT IF IN PROG EDIT OR IF THE
;       GRAPH SCREEN IS NOT DISPLAYED WILL ECHO, ELSE WILL
;       GO TO THE GRAPH SCREEN. 'DRAW' MENU, eval
ECHOSTART2      EQU       069h
;
;
kSELECT         EQU       069h
kCIRCL          equ       06Ah
kCLDRW          equ       06Bh
kLINE           equ       06Ch
kPEN            equ       06Dh
kPTCHG          equ       06Eh
kPTOFF          equ       06Fh
kPTON           equ       070h
kVERT           equ       071h
kHORIZ          equ       072h
kText           equ       073h
KTANLN          equ       074h
kManFit         EQU       075h
;
;   THESE KEYS WILL ALWAYS FORCE TO GRAPH MODE
;
kEVAL           equ       076h
;kINTERS         equ       076h
;kDYDX           equ       077h
;kFNINTG         equ       078h
;kROOTG          equ       079h
;kDYDT           equ       07Ah
;kDXDT           equ       07Bh
;kDRDo           equ       07Ch
;KGFMIN          equ       07Dh
;
;
;
;
ECHOSTART       EQU       07Dh
;
;       KEY PRESSES THAT ECHO INTO A BUFFER
;
kRemain         equ       07Dh          ;only needed to display 'r'
kPLOT3          EQU       07Eh
kLISTNAME       EQU       07Fh
kAdd            equ       080h
kSub            equ       081h
kMul            equ       082h
kDiv            equ       083h
kExpon          equ       084h
kLParen         equ       085h
kRParen         equ       086h
kLBrack         equ       087h
kRBrack         equ       088h
kSHADE          equ       089h
kStore          equ       08Ah
kComma          equ       08Bh
kChs            equ       08Ch
kDecPnt         equ       08Dh
k0              equ       08Eh
k1              equ       08Fh
k2              equ       090h
k3              equ       091h
k4              equ       092h
k5              equ       093h
k6              equ       094h
k7              equ       095h
k8              equ       096h
k9              equ       097h
kEE             equ       098h
kSpace          equ       099h
kCapA           equ       09Ah
kCapB           equ       09Bh
kCapC           equ       09Ch
kCapD           equ       09Dh
kCapE           equ       09Eh
kCapF           equ       09Fh
kCapG           equ       0A0h
kCapH           equ       0A1h
kCapI           equ       0A2h
kCapJ           equ       0A3h
kCapK           equ       0A4h
kCapL           equ       0A5h
kCapM           equ       0A6h
kCapN           equ       0A7h
kCapO           equ       0A8h
kCapP           equ       0A9h
kCapQ           equ       0AAh
kCapR           equ       0ABh
kCapS           equ       0ACh
kCapT           equ       0ADh
kCapU           equ       0AEh
kCapV           equ       0AFh
kCapW           equ       0B0h
kCapX           equ       0B1h
kCapY           equ       0B2h
kCapZ           equ       0B3h
kVarX           equ       0B4h
kPi             equ       0B5h
kInv            equ       0B6h
kSin            equ       0B7h
kASin           equ       0B8h
kCos            equ       0B9h
kACos           equ       0BAh
kTan            equ       0BBh
kATan           equ       0BCh
kSquare         equ       0BDh
kSqrt           equ       0BEh
kLn             equ       0BFh
kExp            equ       0C0h
kLog            equ       0C1h
kALog           equ       0C2h
kToABC          equ       0C3h          ;this is abc<>bc & does ToBC too.
;
;kCLRTBL         EQU       0C4h
;
KANS            EQU       0C5h
kColon          EQU       0C6h
;

kUnit           equ       0C7h          ;                       new
kFracSlash      equ       0C8h          ;                       new
kROOT           equ       0C9h
;
kQuest          EQU       0CAh        ; question mark
kQuote          EQU       0CBh        ; "
kTheta          EQU       0CCh
kIF             equ       0CDh
kTHEN           equ       0CEh
kELSE           equ       0CFh
kFOR            equ       0D0h
kWHILE          equ       0D1h
kREPEAT         equ       0D2h
kEND            equ       0D3h
kPAUSE          equ       0D4h
kLBL            equ       0D5h
kGOTO           EQU       0D6h
kISG            EQU       0D7h
kDSL            EQU       0D8h
kMENU           EQU       0D9h
kEXEC           EQU       0DAh
kRETURN         EQU       0DBh
kSTOP           EQU       0DCh
kINPUT          EQU       0DDh
kPROMPT         EQU       0DEh
kDISP           EQU       0DFh
kDISPG          EQU       0E0h
kDISPT          EQU       0E1h
kOUTPUT         EQU       0E2h
kGETKEY         EQU       0E3h
kCLRHOME        EQU       0E4h
;
;kPRTSCR         EQU       0E5h
;
kPercent        equ        0E6h         ;%                      NEW
kMixSimp        equ        0E7h         ;                       new
kFracDec        equ        0E8h         ;                       new
kSimp           equ        0E9h         ;                       new
kUnredf         equ        0EAh         ;                       new
kIdiv           equ        0EBh         ;                       new
kConvert        equ       0ECh          ;                       new
kLBRACE         EQU       0EDh
kRBRACE         EQU       0EEh
kL1A            EQU       0EFh
kL2A            EQU       0F0h
kL3A            EQU       0F1h
kL4A            EQU       0F2h
kL5A            EQU       0F3h
kL6A            EQU       0F4h
kConvLength     equ       0F5h        ;1st byte of conversion key.
kConvArea       equ       0F6h        ;1st byte of conversion key.
kConvVolume     equ       0F7h        ;1st byte of conversion key.
kConvTime       equ       0F8h        ;1st byte of conversion key.
kConvTemp       equ       0F9h        ;1st byte of conversion key.
kConvMass       equ       0FAh        ;1st byte of conversion key.
kConvSpeed      equ       0FBh        ;1st byte of conversion key.
;
;       THIS KEY MEANS THAT IT IS A 2 BYTE KEYCODE
;       THERE ARE 2 OF THESE KEYS BE CAREFUL
;
;
kExtendEcho2    EQU       0FCh
;
;
;       THIS KEY MEANS THAT THE KEY PRESS IS ONE THAT ECHOS
;       INTO A BUFFER, AND IT IS A 2 BYTE KEY CODE, GO LOOK AT
;       (EXTECHO) FOR THE KEY VALUE
;
kExtendEcho     EQU       0FEh
;

kE1BT           EQU       0

kDRAWINV        equ       kE1BT
kDRAWF          equ       kE1BT+1
kPIXELON        equ       kE1BT+2
kPIXELOFF       equ       kE1BT+3
kPXLTEST        equ       kE1BT+4
kRCGDB          equ       kE1BT+5
kRCPIC          equ       kE1BT+6
kSTGDB          equ       kE1BT+7
kSTPIC          equ       kE1BT+8
KABS            equ       kE1BT+9
kTEqu           equ       kE1BT+10    ; ==
kTNOTEQ         equ       kE1BT+11    ; <>
kTGT            equ       kE1BT+12    ; >
kTGTE           equ       kE1BT+13    ; > =
kTLT            equ       kE1BT+14    ; <
kTLTE           equ       kE1BT+15    ; < =

kAND            equ       kE1BT+16
kOR             equ       kE1BT+17
kXOR            equ       kE1BT+18
kNOT            equ       kE1BT+19

;kLR1            equ       kE1BT+20

kXROOT          equ       kE1BT+21
kCUBE           equ       kE1BT+22
kCBRT           equ       kE1BT+23    ; CUBE ROOT
kTODEC          equ       kE1BT+24
;
kCUBICR         equ       kE1BT+25
kQUARTR         equ       kE1BT+26
;
kPLOT1          equ       kE1BT+27
kPLOT2          equ       kE1BT+28
;

kROUND          equ       kE1BT+29
kIPART          equ       kE1BT+30
kFPART          equ       kE1BT+31
kINT            equ       kE1BT+32

kRAND           equ       kE1BT+33
kNPR            equ       kE1BT+34
kNCR            equ       kE1BT+35
kXFACTORIAL     equ       kE1BT+36

kRAD            equ       kE1BT+37
kDEGR           equ       kE1BT+38    ; DEGREES CONV
kAPOST          equ       kE1BT+39
kTODMS          equ       kE1BT+40
kRTOPo          equ       kE1BT+41    ; R
kRTOPr          equ       kE1BT+42
kPTORx          equ       kE1BT+43
kPTORy          equ       kE1BT+44

kROWSWAP        equ       kE1BT+45
kROWPLUS        equ       kE1BT+46
kTIMROW         equ       kE1BT+47
kTROWP          equ       kE1BT+48

kSORTA          equ       kE1BT+49
kSORTD          equ       kE1BT+50
kSEQ            equ       kE1BT+51

kMIN            EQU       kE1BT+52
kMAX            EQU       kE1BT+53
kMEAN           EQU       kE1BT+54
kMEDIAN         EQU       kE1BT+55
kSUM            EQU       kE1BT+56
kPROD           EQU       kE1BT+57

kDET            equ       kE1BT+58
kTRANSP         equ       kE1BT+59
kDIM            equ       kE1BT+60    ; SAME AS ONE IN LIST
kFILL           equ       kE1BT+61    ; SAME AS ONE IN LIST
kIDENT          equ       kE1BT+62
kRANDM          equ       kE1BT+63
kAUG            equ       kE1BT+64

kLstMode        equ       kE1BT+65
;available      equ       kE1BT+66

;kOneVar         equ       kE1BT+66
;kTWOVAR         EQU       kE1BT+67
;kLR             equ       kE1BT+68
;kLRExp          equ       kE1BT+69
;kLRLn           equ       kE1BT+70
;;kLRPwr          equ       kE1BT+70
;;kManFit         EQU       kE1BT+70
;kMEDMED         EQU       kE1BT+71
;kQUAD           EQU       kE1BT+72
;kCLRLST         equ       kE1BT+73
;kHist           equ       kE1BT+74
;kxyLine         equ       kE1BT+75
;kScatter        equ       kE1BT+76

kmRad           equ       kE1BT+67
kmDeg           equ       kE1BT+68
kmNormF         equ       kE1BT+69
kmSci           equ       kE1BT+70
kFix            equ       kE1BT+71
kmFloat         equ       kE1BT+72
kSetMenu        equ       kE1BT+73
kEoFrac         equ       kE1BT+74

kBoyIcon        EQU     kE1BT+75
kTreeIcon       EQU     kE1BT+76
kFaceIcon       EQU     kE1BT+77
kCircleIcon     EQU     kE1BT+78
kDiamondIcon    EQU     kE1BT+79
kStarIcon       EQU     kE1BT+80
kDollarIcon      EQU    kE1BT+81
;available      equ     kE1BT+82
;available      equ     kE1BT+83

kFNON           equ       kE1BT+84
kFNOFF          EQU       kE1BT+85

kPLOTSON        EQU       kE1BT+86
kPLOTSOFF       EQU       kE1BT+87

kPIXELCHG       EQU       kE1BT+88


kSENDMBL        EQU       kE1BT+89
kRECVMBL        EQU       kE1BT+90

kBOXPLOT        EQU       kE1BT+ 91
kBOXICON        EQU       kE1BT+ 92
kCROSSICON      EQU       kE1BT+ 93
kDOTICON        EQU       kE1BT+ 94

kE2BT           EQU       kE1BT+95


kSeqENTIAL      equ       kE2BT         ;105
kSimulG         equ       kE2BT+1       ;106
kCoordOn        equ       kE2BT+2       ;107
kCoordOff       equ       kE2BT+3       ;108
kDrawLine       equ       kE2BT+4       ;109
kDrawDot        equ       kE2BT+5       ;110
kAxisOn         equ       kE2BT+6       ;111
kAxisOff        equ       kE2BT+7       ;112
kGridOn         equ       kE2BT+8       ;113
kGridOff        equ       kE2BT+9       ;114
kLblOn          equ       kE2BT+10      ;115
kLblOff         equ       kE2BT+11      ;116
kPolarG         equ       kE2BT+12      ;117
kRectG          equ       kE2BT+13      ;118

kL1             EQU       kE2BT+14      ;119 = 77h
kL2             EQU       kE2BT+15
kL3             EQU       kE2BT+16
kL4             EQU       kE2BT+17
kL5             EQU       kE2BT+18
kL6             EQU       kE2BT+19

kMATA           equ       kE2BT+20
kMATB           equ       kE2BT+21
kMATC           equ       kE2BT+22
kMATD           equ       kE2BT+23
kMATE           equ       kE2BT+24

kXMIN           EQU       kE2BT+25
kXMAX           EQU       kE2BT+26
kXSCL           EQU       kE2BT+27
kYMIN           equ       kE2BT+28
kYMAX           equ       kE2BT+29
kYSCL           equ       kE2BT+30
kTMIN           equ       kE2BT+31
kTMAX           equ       kE2BT+32
kTSTEP          equ       kE2BT+33
koMIN           equ       kE2BT+34
koMAX           equ       kE2BT+35
koSTEP          equ       kE2BT+36
kU0             EQU       kE2BT+37
kV0             EQU       kE2BT+38
kNMIN           EQU       kE2BT+39
kNMAX           EQU       kE2BT+40
kDELTAy         EQU       kE2BT+41
kDELTAx         EQU       kE2BT+42

kZXMIN          EQU       kE2BT+43
kZXMAX          EQU       kE2BT+44
kZXSCL          EQU       kE2BT+45
kZYMIN          EQU       kE2BT+46
kZYMAX          EQU       kE2BT+47
kZYSCL          EQU       kE2BT+48
kZTMIN          EQU       kE2BT+49
kZTMAX          EQU       kE2BT+50
kZTSTEP         EQU       kE2BT+51
kZoMIN          EQU       kE2BT+52
kZoMAX          EQU       kE2BT+53
kZoSTEP         EQU       kE2BT+54
;
kABC            Equ       kE2BT+55
kBC             Equ       kE2BT+56
kAutoSimp       Equ       kE2BT+57
kManSimp        Equ       kE2BT+58

kDelLast        EQU       kE2BT+59
kSingleC        EQU       kE2BT+60
kMultiC         EQU       kE2BT+61

kPIC1           EQU       kE2BT+62
kPIC2           EQU       kE2BT+63
kPIC3           EQU       kE2BT+64

kDelVar         EQU       kE2BT+65
kGetCalc        EQU       kE2BT+66

kStndrd         EQU       kE2BT+67
kParam          equ       kE2BT+68
kPolar          EQU       kE2BT+69
kAFILLON        equ       kE2BT+70
kAFILLOFF       equ       kE2BT+71
kACALCON        EQU       kE2BT+72
kACALCOFF       equ       kE2BT+73

kSetConst       equ       kE2BT+74
;
kGRAPHSTYLE     EQU       kE2BT+75
;
kEXPRON         EQU       kE2BT+76
kEXPROFF        EQU       kE2BT+77
kSTATa          EQU       kE2BT+78
kSTATb          EQU       kE2BT+79
kSTATc          EQU       kE2BT+80
kCORR           EQU       kE2BT+81
kSTATd          EQU       kE2BT+82
kSTATe          EQU       kE2BT+83
kREGEQ          EQU       kE2BT+84
kMINX           EQU       kE2BT+85
kQ1             EQU       kE2BT+86
kMD             EQU       kE2BT+87
kQ3             EQU       kE2BT+88
kMAXX           EQU       kE2BT+89
kSTATX1         EQU       kE2BT+90
kSTATY1         EQU       kE2BT+91
kSTATX2         EQU       kE2BT+92
kSTATY2         EQU       kE2BT+93
kSTATX3         EQU       kE2BT+94
kSTATY3         EQU       kE2BT+95
kTBLMIN         EQU       kE2BT+96
kTBLSTEP        EQU       kE2BT+97
KSETUPLST       EQU       kE2BT+98
KCLRALLLST      EQU       kE2BT+99
KLOGISTIC       EQU       kE2BT+100
kC1             EQU       kE2BT+101   ;constant C1
kC2             EQU       kE2BT+102   ;constant C2
kC3             EQU       kE2BT+103   ;constant C3
kC4             EQU       kE2BT+104   ;constant C4
kPlotStart      EQU       kE2BT+105   ; PLOTSTART
kZPlotStart     EQU       kE2BT+106   ; ZPLOTSTART
kXFact          EQU       kE2BT+107   ; XFACT
kYFact          EQU       kE2BT+108   ; YFACT
kMaxY           EQU       kE2BT+109   ; MAXY
kTblInput       EQU       kE2BT+110   ; WEB OFF
kPlotStep       EQU       kE2BT+111
kZPlotStep      EQU       kE2BT+112
kSelectA        EQU       kE2BT+113
kZFITA          EQU       kE2BT+114
kOneVar         equ       kE2BT+115
kTWOVAR         EQU       kE2BT+116
kLR             equ       kE2BT+117
kLRExp          equ       kE2BT+118
kLRLn           equ       kE2BT+119
;kLRPwr          equ       kE2BT+
;kManFit         EQU       kE2BT+
kMEDMED         EQU       kE2BT+120
kQUAD           EQU       kE2BT+121
kClrLst         equ       kE2BT+122
kHist           equ       kE2BT+123
kxyLine         equ       kE2BT+124
kScatter        equ       kE2BT+125
kLR1            equ       kE2BT+126
kClrTbl         EQU       kE2BT+127
kE2BT_END       EQU       kClrTbl
kStatEd         equ       043h
kGraph          equ       044h
kMode           equ       045h
kPrgmEd         equ       046h        ; PROGRAM EDIT
kPrgmCr         equ       047h        ; PROGRAM CREATE
kWindow         equ       048h        ; RANGE EDITOR
kYEqu           equ       049h        ; EQUATION EDITOR
kTable          equ       04Ah        ; TABLE EDITOR
kTblSet         equ       04Bh        ; TABLE SET
kChkRAM         equ       04CH        ; CHECK RAM
kDelMem         equ       04DH        ; DELETE MEM
kResetMem       equ       04EH        ; RESET MEM
kResetDef	equ	  04FH        ; RESET DEFAULT
kPrgmInput      EQU       050H        ; PROGRAM INPUT
kZFactEd        EQU       051H        ; ZOOM FACTOR EDITOR
;
;
cxCmd           equ     kQuit                   ;home screen
cxAppsApp       equ     kChkApps                ;APPs usage screen
cxPrgmEdit      equ     046h                 ;program editor
cxEquEdit       equ     kYEqu                   ;equation editor
cxGrRange       equ     kWindow                 ;graph range editor
cxGrZfact       equ     kZFactEd                ;graph zoom factors editor
cxGraph         equ     kGraph                  ;graph mode
cxStatEdit      equ     kStatEd                 ;statistics list editor
cxPrgmInput     equ     kPrgmInput              ;programmed input
cxError         equ     kError                  ;error handler
cxLinkIO        equ     kLinkIO                 ;LINK I/O interface
cxMEM           equ     kResetMem               ;reset memory
cxDEFMEM        equ     kResetDef               ;reset default
cxRamApp        equ     kChkRAM                 ;RAM usage screen
cxMode          equ     kMode                   ;mode settings screen
cxErase         equ     kDelMem                 ;memory erase
;cxSTATSET       EQU     kStatSetup              ;STAT SET UP
cxPRGMCREATE    EQU     kPrgmCr                 ;PROGRAM CREATE
cxTABLEEDITOR   EQU     kTable                  ;TABLE EDITOR
cxTABLESET      EQU     kTblSet                 ;TABLE SET UP
cxSTATPLOT      EQU     kStatP                  ;STAT PLOTS
;cxINFSTAT       EQU     kInfStat                ;Inferential Statistic
cxFORMAT        EQU     kFormat                 ;FORMAT CONTEXT
;cxSOLVETVM      EQU     kSolveTVM               ;Solve TVM
cxSOLVEROOT     EQU     kSolveRoot              ;Solve Root
cxExtApps       equ     kExtApps        ;053h   ; Extra Applications.     NEW
cxConsted       equ     kConsted        ;056h   ; Constant equ Editor.
cxPrgmSetVar    equ     kPrgmSetVar     ;057h   ; SetMenu in a Program.

; NEW 2 BYTE KEYS

kE2BT2          EQU       0

kGDB1           EQU       kE2BT2
kGDB2           EQU       kE2BT2+1
kGDB3           EQU       kE2BT2+2
kY1             EQU       kE2BT2+3
kY2             EQU       kE2BT2+4
kY3             EQU       kE2BT2+5
kY4             EQU       kE2BT2+6
kY5             EQU       kE2BT2+7
kY6             EQU       kE2BT2+8
kY7             EQU       kE2BT2+9
kY8             EQU       kE2BT2+10
kY9             EQU       kE2BT2+11
kY0             EQU       kE2BT2+12
kX1T            EQU       kE2BT2+13
kY1T            EQU       kE2BT2+14
kX2T            EQU       kE2BT2+15
kY2T            EQU       kE2BT2+16
kX3T            EQU       kE2BT2+17
kY3T            EQU       kE2BT2+18
kX4T            EQU       kE2BT2+19
kY4T            EQU       kE2BT2+20
kX5T            EQU       kE2BT2+21
kY5T            EQU       kE2BT2+22
kX6T            EQU       kE2BT2+23
kY6T            EQU       kE2BT2+24
kR1             EQU       kE2BT2+25
kR2             EQU       kE2BT2+26
kR3             EQU       kE2BT2+27
kR4             EQU       kE2BT2+28
kR5             EQU       kE2BT2+29
kR6             EQU       kE2BT2+30
kGDB4           EQU       kE2BT2+31
kGDB5           EQU       kE2BT2+32
kGDB6           EQU       kE2BT2+33
kPIC4           EQU       kE2BT2+34
kPIC5           EQU       kE2BT2+35
kPIC6           EQU       kE2BT2+36
kGDB7           EQU       kE2BT2+37
kGDB8           EQU       kE2BT2+38
kGDB9           EQU       kE2BT2+39
kGDB0           EQU       kE2BT2+40
kPIC7           EQU       kE2BT2+41
kPIC8           EQU       kE2BT2+42
kPIC9           EQU       kE2BT2+43
kPIC0           EQU       kE2BT2+44
kSTATN          EQU       kE2BT2+45
kXMEAN          EQU       kE2BT2+46
;kCONJ           EQU       kE2BT2+47
;kREAL           EQU       kE2BT2+48
;kFANGLE         EQU       kE2BT2+49
kLCM            EQU       kE2BT2+50
kGCD            EQU       kE2BT2+51
kRANDINT        EQU       kE2BT2+52
kCoin           EQU       kE2BT2+53
kDice           EQU       kE2BT2+54
kRemainder      EQU       kE2BT2+55
;kRANDNORM       EQU       kE2BT2+53
;kTOPOLAR        EQU       kE2BT2+54
;kTORECT         EQU       kE2BT2+55
kYMEAN          EQU       kE2BT2+56
kSTDX           EQU       kE2BT2+57
kSTDX1          EQU       kE2BT2+58
kW0             EQU       kE2BT2+59
kMATF           EQU       kE2BT2+60
kMATG           EQU       kE2BT2+61
kMATRH          EQU       kE2BT2+62
kMATI           EQU       kE2BT2+63
kMATJ           EQU       kE2BT2+64
kYMEAN1         EQU       kE2BT2+65
kSTDY           EQU       kE2BT2+66
kSTDY1          EQU       kE2BT2+67
kMATTOLST       EQU       kE2BT2+68
kLSTTOMAT       EQU       kE2BT2+69
kCUMSUM         EQU       kE2BT2+70
kDELTALST       EQU       kE2BT2+71
kSTDDEV         EQU       kE2BT2+72
kVARIANCE       EQU       kE2BT2+73
kLENGTH         EQU       kE2BT2+74
kEQUTOSTRNG     EQU       kE2BT2+75
kSTRNGTOEQU     EQU       kE2BT2+76
kEXPR           EQU       kE2BT2+77
kSUBSTRNG       EQU       kE2BT2+78
kINSTRNG        EQU       kE2BT2+79
kSTR1           EQU       kE2BT2+80
kSTR2           EQU       kE2BT2+81
kSTR3           EQU       kE2BT2+82
kSTR4           EQU       kE2BT2+83
kSTR5           EQU       kE2BT2+84
kSTR6           EQU       kE2BT2+85
kSTR7           EQU       kE2BT2+86
kSTR8           EQU       kE2BT2+87
kSTR9           EQU       kE2BT2+88
kSTR0           EQU       kE2BT2+89
kSimpFact       equ       kE2BT2+90
kPictPlot       EQU     kE2BT2+91
kCirclePlot     EQU     kE2BT2+92
kStemPlot       EQU     kE2BT2+93
kBarPlot        EQU     kE2BT2+94
;kBoyIcon        EQU     kE2BT2+95
;kGirlIcon       EQU     kE2BT2+96
;kFaceIcon       EQU     kE2BT2+97
;kCircleIcon     EQU     kE2BT2+98
;kDiamondIcon    EQU     kE2BT2+99
;kStarIcon       EQU     kE2BT2+100
;kDollarIcon      EQU     kE2BT2+101

kSUMX           EQU       kE2BT2+102
kSUMX2          EQU       kE2BT2+103

kSUMY           EQU       kE2BT2+104
KXRES           EQU       kE2BT2+105

kSUMY2          EQU       kE2BT2+106
kSUMXY          EQU       kE2BT2+107
KUXRES          EQU       kE2BT2+108
kModBox         EQU       kE2BT2+109
kNormProb       EQU       kE2BT2+110

kMINY           EQU       kE2BT2+111   ; MINY
KREF            EQU       kE2BT2+112
KRREF           EQU       kE2BT2+113
KLRSQR          EQU       kE2BT2+114
KBRSQR          EQU       kE2BT2+115
kDiagOn         EQU       kE2BT2+116
kDiagOff        EQU       kE2BT2+117
;kun1            EQU       kE2BT2+152   ; FOR RCL USE WHEN GOTTEN FROM 82
;KVN1            EQU       kE2BT2+153   ; FOR RCL USE WHEN GOTTEN FROM 82
kE2BT2_END      EQU       kDiagOff

kNO             EQU       021h
kKRESET         EQU       022h

;OPEN FOR EXPANSION       027h..02Ch

;MENUSTART       EQU       02DH


kvLIST          equ       020h
kvPIC           equ       021h
kvPRGM          equ       022h
kvREAL          equ       023h
kvYVARS         equ       024h
kvEND           EQU       kvYVARS
;kNO             EQU       025h
;kKRESET         EQU       026h
;kAbout          equ       027h  ;about screen
;kApp            equ       028h
KProgExec       EQU       029H
;kListflag       equ       02Ah
;       LEAVE 2Bh - 2Dh OPEN FOR EXPANSION
kMatrixEd       equ       042h
cxMatEdit       equ     kMatrixEd               ;matrix editor

;kvALL           equ       01Bh
kvGDB           equ       01Ch
;kvLIST          equ       01Dh
kvMATRX         equ       01Eh
;kvPIC           equ       01Fh
;kvPRGM          equ       020h
;kvREAL          equ       021h
;kvYVARS         equ       022h
kvCPLX          EQU       023h
kvSTRING        EQU       024h
kvEND           EQU       kvSTRING
;kApp            equ       027h
;KProgExec       EQU       028H
;kListflag       equ       029h
;       LEAVE 2Ah - 2Dh OPEN FOR EXPANSION
kPRTSCR         EQU       0E5h

kGirlIcon       EQU     kE1BT+76

kCLRTBL         EQU       0C4h
;kLR1            equ       kE1BT+20
;kOneVar         equ       kE1BT+66
;kTWOVAR         EQU       kE1BT+67
;kLR             equ       kE1BT+68
;kLRExp          equ       kE1BT+69
;kLRLn           equ       kE1BT+70
;kLRPwr          equ       kE1BT+70
;kManFit         EQU       kE1BT+70
;kMEDMED         EQU       kE1BT+71
;kQUAD           EQU       kE1BT+72
kCLRLST         equ       kE1BT+73
;kHist           equ       kE1BT+74
;kxyLine         equ       kE1BT+75
;kScatter        equ       kE1BT+76
;kmRad           equ       kE1BT+77
;kmDeg           equ       kE1BT+78
;kmNormF         equ       kE1BT+79
;kmSci           equ       kE1BT+80
;kFix            equ       kE1BT+81
;kmFloat         equ       kE1BT+82
;kSetMenu        equ       kE1BT+83
;kEoFrac         equ       kE1BT+84
;kFix            equ       kE1BT+81
;kSPLITON        equ       kE1BT+84
;kFULLSCREEN     EQU       kE1BT+85
;kStndrd         EQU       kE1BT+86
;kParam          equ       kE1BT+87
;kPolar          EQU       kE1BT+88
;kAFILLON        equ       kE1BT+90
;kAFILLOFF       equ       kE1BT+91
;kACALCON        EQU       kE1BT+92
;kACALCOFF       equ       kE1BT+93
;avail          equ     kE1BT+85
;avail          equ     kE1BT+86
;avail          equ     kE1BT+87
;avail          equ     kE1BT+88
;avail          equ     kE1BT+89
;avail          equ     kE1BT+90
;avail          equ     kE1BT+91
;avail          equ     kE1BT+92
;avail          equ     kE1BT+93

;kFNON           equ       kE1BT+94
;kFNOFF          EQU       kE1BT+95
;kPLOTSON        EQU       kE1BT+96
;kPLOTSOFF       EQU       kE1BT+97
KPIXELCHG       EQU       kE1BT+98
;kSENDMBL        EQU       kE1BT+99
;kRECVMBL        EQU       kE1BT+100
;kBOXPLOT        EQU       kE1BT+101
;;kBOXICON        EQU       kE1BT+102
;kCROSSICON      EQU       kE1BT+103
;kDOTICON        EQU       kE1BT+104
;kE2BT           EQU       kE1BT+105
;kE2BT_END       EQU       kZFITA
;kBoyIcon        EQU     kE2BT2+95
;kGirlIcon       EQU     kE2BT2+96
;kFaceIcon       EQU     kE2BT2+97
;kCircleIcon     EQU     kE2BT2+98
;kDiamondIcon    EQU     kE2BT2+99
;kStarIcon       EQU     kE2BT2+100
;kDollarIcon      EQU     kE2BT2+101
;kFINn           EQU       kE2BT2+90
;kFINi           EQU       kE2BT2+91
;kFINpv          EQU       kE2BT2+92
;kFINpmt         EQU       kE2BT2+93
;kFINfv          EQU       kE2BT2+94
;kFINpy          EQU       kE2BT2+95
;kFINcy          EQU       kE2BT2+96
;kFINFpmt        EQU       kE2BT2+97
;kFINFi          EQU       kE2BT2+98
;kFINFpv         EQU       kE2BT2+99
;kFINFn          EQU       kE2BT2+100
;kFINFfv         EQU       kE2BT2+101
;kFINnpv         EQU       kE2BT2+102
;kFINirr         EQU       kE2BT2+103
;kFINbal         EQU       kE2BT2+104
;kFINprn         EQU       kE2BT2+105
;kFINint         EQU       kE2BT2+106
;kSUMX           EQU       kE2BT2+107
;kSUMX2          EQU       kE2BT2+108
;kFINtonom       EQU       kE2BT2+109
;kFINtoeff       EQU       kE2BT2+110
;kFINdbd         EQU       kE2BT2+111
;kSTATVP         EQU       kE2BT2+112
;kSTATZ          EQU       kE2BT2+113
;kSTATT          EQU       kE2BT2+114
;kSTATCHI        EQU       kE2BT2+115
;kSTATF          EQU       kE2BT2+116
;kSTATDF         EQU       kE2BT2+117
;kSTATPHAT       EQU       kE2BT2+118
;kSTATPHAT1      EQU       kE2BT2+119
;kSTATPHAT2      EQU       kE2BT2+120
;kSTATMEANX1     EQU       kE2BT2+121
;kSTATMEANX2     EQU       kE2BT2+122
;kSTATSTDX1      EQU       kE2BT2+123
;kSTATSTDX2      EQU       kE2BT2+124
;kSTATSTDXP      EQU       kE2BT2+125
;kSTATN1         EQU       kE2BT2+126
;kSTATN2         EQU       kE2BT2+127
;kSTATLOWER      EQU       kE2BT2+128
;kSTATUPPER      EQU       kE2BT2+129
;KUW0            EQU       kE2BT2+130
;KIMAG           EQU       kE2BT2+131
;kSUMY           EQU       kE2BT2+132
;;KXRES           EQU       kE2BT2+133
KSTAT_S         EQU       kE2BT2+134
;kSUMY2          EQU       kE2BT2+135
;;kSUMXY          EQU       kE2BT2+136
;KUXRES          EQU       kE2BT2+137
;kModBox		EQU       kE2BT2+138
;kNormProb	EQU       kE2BT2+139

;KNORMALPDF      EQU       kE2BT2+140
;KTPDF           EQU       kE2BT2+141
;KCHIPDF         EQU       kE2BT2+142
;KFPDF           EQU       kE2BT2+143
;kMINY           EQU       kE2BT2+144   ; MINY
;KRANDBIN        EQU       kE2BT2+145
;KREF            EQU       kE2BT2+146
;KRREF           EQU       kE2BT2+147
;KLRSQR          EQU       kE2BT2+148
;KBRSQR          EQU       kE2BT2+149
;KDIAGON         EQU       kE2BT2+150
;KDiagOff        EQU       kE2BT2+151
kSeqENTIAL      equ       kE2BT
kSimulG         equ       kE2BT+1
;kPolarG         equ       kE2BT+2
;kRectG          equ       kE2BT+3
;kCoordOn        equ       kE2BT+4
;kCoordOff       equ       kE2BT+5
;kDrawLine       equ       kE2BT+6
;kDrawDot        equ       kE2BT+7
;kAxisOn         equ       kE2BT+8
;kAxisOff        equ       kE2BT+9
;kGridOn         equ       kE2BT+10
;kGridOff        equ       kE2BT+11
;kLblOn          equ       kE2BT+12
;kLblOff         equ       kE2BT+13
kMatrix         equ       037h
kBOX            equ       05Fh
kDECML          equ       060h
kSQUAR          equ       062h
kSTD            equ       063h
kTRIG           equ       064h
kUSRZM          equ       065h
kZsto           equ       066h
;avail           EQU       kE2BT+60
;avail           EQU       kE2BT+61
;avail          equ       kE2BT+74

;kOneVar         equ       kE1BT+65
;kTWOVAR         EQU       kE1BT+66
;kLR             equ       kE1BT+67
;kLRExp          equ       kE1BT+68
;kLRLn           equ       kE1BT+69

;kEVAL           equ       075h
;kManFit         EQU       kE1BT+70
kCalc           equ       03Bh
;MENUEND         EQU       kCalc
kChar           equ       034h
kFORMAT         equ       057h        ; FORMAT

;ECHOSTART       EQU       07Eh
KPLOT3          EQU       07EH
;avail          equ     kE1BT+83
kun1            EQU       kE2BT2+152   ; FOR RCL USE WHEN GOTTEN FROM 82
kVN1            EQU       kE2BT2+153   ; FOR RCL USE WHEN GOTTEN FROM 82
;kE2BT2_END      EQU       kVN1
;kLBRACE         EQU       0ECh
;kRBRACE         EQU       0EDh
;kL1A            EQU       0EEh
;kL2A            EQU       0EFh
;kL3A            EQU       0F0h
;kL4A            EQU       0F1h
;kL5A            EQU       0F2h
;kL6A            EQU       0F3h
;kConvert        equ       0F4h          ;                       new
;KGFMAX          equ       07Eh
;ECHOSTART       EQU       07Fh
;kToBC           equ       0C7h
;kNDERIV         equ       0C7h
;kFNINT          equ       0C8h
;kConvLength     equ       0C8h        ;temporary value for Converting lengths.
;kSINH           EQU       0E6h
;kCOSH           EQU       0E7h
;kTANH           EQU       0E8h
;kASINH          EQU       0E9h
;kACOSH          EQU       0EAh
;kATANH          EQU       0EBh
;Ki              EQU       0EEh
;kUnit           equ        0EEh         ;                       new
;KCONSTeA        EQU       0EFH
;KPLOT3          EQU       0F0H
;KFMIN           EQU       0F1H
;KFMAX           EQU       0F2h
;kConvert        equ       0F3h          ;                       new
;kFracSlash      equ       0F4h          ;                       new
;AVAILABLE       equ       0F5h
;kL1A            EQU       0F6h
;kL2A            EQU       0F7h
;kL3A            EQU       0F8h
;kL4A            EQU       0F9h
;kL5A            EQU       0FAh
;kL6A            EQU       0FBh
;KUnA            EQU       0F9h
;KVnA            EQU       0FAh
;KWnA            EQU       0FBH
kmEng           equ       kE1BT+81
;kFix            equ       kE1BT+83
;kStndrd         EQU       kE1BT+86
;kParam          equ       kE1BT+87
;kPolar          EQU       kE1BT+88
;kSEQG           equ       kE1BT+89
kDivNorm        equ       kE1BT+88
kDivInt         equ       kE1BT+89
;kAFILLON        equ       kE1BT+90
;kAFILLOFF       equ       kE1BT+91
;kACALCON        EQU       kE1BT+92
;kACALCOFF       equ       kE1BT+93
kZU0            EQU       kE2BT+55
kZV0            EQU       kE2BT+56
kZNMIN          EQU       kE2BT+57
kZNMAX          EQU       kE2BT+58
KSINREG         EQU       kE2BT+60
;KCONSTe         EQU       kE2BT+61
kREALM          EQU       kE2BT+67
kPOLARM         EQU       kE2BT+68
kRECTM          EQU       kE2BT+69
kUV             EQU       kE2BT+70    ; U vs V
kVW             EQU       kE2BT+71    ; V vs W
kUW             EQU       kE2BT+72    ; U vs W
;kFINpmtend      EQU       kE2BT+73
;kFINpmtbeg      EQU       kE2BT+74
;kABC            Equ       kE2BT+70
;kBC             Equ       kE1BT+71
;kAutoSimp       Equ       kE1BT+72
;kManSimp        Equ       kE1BT+73
;
;KZTEST          EQU       kE2BT+101
;KTTEST          EQU       kE2BT+102
;K2SAMPZTEST     EQU       kE2BT+103
;K2SAMPTTEST     EQU       kE2BT+104
;K1PROPZTEST     EQU       kE2BT+105
;K2PROPZTEST     EQU       kE2BT+106
;KCHITEST        EQU       kE2BT+107
;K2SAMPFTEST     EQU       kE2BT+108
;KZINTVAL        EQU       kE2BT+109
;KTINTVAL        EQU       kE2BT+110
;K2SAMPTINT      EQU       kE2BT+111
;K2SAMPZINT      EQU       kE2BT+112
;K1PROPZINT      EQU       kE2BT+113
;K2PROPZINT      EQU       kE2BT+114
;KDNORMAL        EQU       kE2BT+115
;KINVNORM        EQU       kE2BT+116
;KDT             EQU       kE2BT+117
;KCHI            EQU       kE2BT+118
;KDF             EQU       kE2BT+119
;KBINPDF         EQU       kE2BT+120
;KBINCDF         EQU       kE2BT+121
;KPOIPDF         EQU       kE2BT+122
;KPOICDF         EQU       kE2BT+123
;kUn             EQU       kE2BT+124
;kVn             EQU       kE2BT+125
;kWn             EQU       kE2BT+126
;kRecn           EQU       kE2BT+127   ; recursion n
;kC1             EQU       kE2BT+124   ;constant C1
;kC2             EQU       kE2BT+125   ;constant C2
;kC3             EQU       kE2BT+126   ;constant C3
;kC4             EQU       kE2BT+127   ;constant C4
KPLOTSTART      EQU       kE2BT+128   ; PLOTSTART
KZPLOTSTART     EQU       kE2BT+129   ; ZPLOTSTART
kXFACT          EQU       kE2BT+130   ; XFACT
kYFACT          EQU       kE2BT+131   ; YFACT
;KANOVA          EQU       kE2BT+132   ; MINY
kMAXY           EQU       kE2BT+133   ; MAXY
kWEBON          EQU       kE2BT+134   ; WEB ON
kWEBOFF         EQU       kE2BT+135   ; WEB OFF
kTBLINPUT       EQU       kE2BT+136   ; WEB OFF
;KGEOPDF         EQU       kE2BT+137
;KGEOCDF         EQU       kE2BT+138
;KSHADENORM      EQU       kE2BT+139
;KSHADET         EQU       kE2BT+140
;KSHADECHI       EQU       kE2BT+141
;KSHADEF         EQU       kE2BT+142
KPLOTSTEP       EQU       kE2BT+143
KZPLOTSTEP      EQU       kE2BT+144
;KLINREGTTEST    EQU       kE2BT+145
;KMGT            EQU       kE2BT+146   ; VERT SPLIT
;kSelectA        EQU       kE2BT+147
;kZFITA          EQU       kE2BT+148
kSTATVP         EQU       kE2BT2+112
kSTATZ          EQU       kE2BT2+113
kSTATT          EQU       kE2BT2+114
kSTATCHI        EQU       kE2BT2+115
kSTATF          EQU       kE2BT2+116
kSTATDF         EQU       kE2BT2+117
kSTATPHAT       EQU       kE2BT2+118
kSTATPHAT1      EQU       kE2BT2+119
kSTATPHAT2      EQU       kE2BT2+120
kSTATMEANX1     EQU       kE2BT2+121
kSTATMEANX2     EQU       kE2BT2+122
kSTATSTDX1      EQU       kE2BT2+123
kSTATSTDX2      EQU       kE2BT2+124
kSTATSTDXP      EQU       kE2BT2+125
kSTATN1         EQU       kE2BT2+126
kSTATN2         EQU       kE2BT2+127
kSTATLOWER      EQU       kE2BT2+128
kSTATUPPER      EQU       kE2BT2+129
KUW0            EQU       kE2BT2+130
kConst          EQU       03Ch
;MENUEND         EQU       kConst
;kInfStat        equ       056h        ; Inferential Statistic
kUn             EQU       kE2BT+124
kVn             EQU       kE2BT+125
kWn             EQU       kE2BT+126
kRecn           EQU       kE2BT+127   ; recursion n

kDist           equ       038h
kToABC          equ       0C3h
kInfStat 	equ	  056h	      ; Inferential Statistic
kINTERS         equ       076h
kDYDX           equ       077h
kFNINTG         equ       078h
kROOTG          equ       079h
kDYDT           equ       07Ah
kDXDT           equ       07Bh
kDRDo           equ       07Ch
KGFMIN          equ       07Dh
KGFMAX          equ       07Eh
kNDERIV         equ       0C7h
kFNINT          equ       0C8h

KCONSTeA        EQU       0EFH
KFMIN           EQU       0F1H
KFMAX           EQU       0F2h
kLRPwr          equ       kE1BT+70
kSPLITON        equ       kE1BT+84
kFULLSCREEN     EQU       kE1BT+85
kSEQG           equ       kE1BT+89
KCONSTe         EQU       kE2BT+61
KMGT		EQU	  kE2BT+146   ; VERT SPLIT

cxINFSTAT	EQU	kInfStat		;Inferential Statistic
kCONJ           EQU       kE2BT2+47
kREAL           EQU       kE2BT2+48
kFANGLE         EQU       kE2BT2+49
kTOPOLAR        EQU       kE2BT2+54
kTORECT         EQU       kE2BT2+55
KIMAG           EQU       kE2BT2+131
KDOUG           EQU       028H
kAngle          equ       039h
kFIN            EQU       03Ch
;MENUEND         EQU       kFIN
kSolveTVM       EQU       053h        ; TVM SOLVER
kSINH           EQU       0E6h
kCOSH           EQU       0E7h
kTANH           EQU       0E8h
kASINH          EQU       0E9h
kACOSH          EQU       0EAh
kATANH          EQU       0EBh
Ki              EQU       0EEh
;kL1A            EQU       0F3h
;kL2A            EQU       0F4h
;kL3A            EQU       0F5h
;kL4A            EQU       0F6h
;kL5A            EQU       0F7h
;kL6A            EQU       0F8h
KUnA            EQU       0F9h
KVnA            EQU       0FAh
KWnA            EQU       0FBH
kFINpmtend      EQU       kE2BT+73
kFINpmtbeg      EQU       kE2BT+74
KZTEST          EQU       kE2BT+101
KTTEST          EQU       kE2BT+102
K2SAMPZTEST     EQU       kE2BT+103
K2SAMPTTEST     EQU       kE2BT+104
K1PROPZTEST     EQU       kE2BT+105
K2PROPZTEST     EQU       kE2BT+106
KCHITEST        EQU       kE2BT+107
K2SAMPFTEST     EQU       kE2BT+108
KZINTVAL        EQU       kE2BT+109
KTINTVAL        EQU       kE2BT+110
K2SAMPTINT      EQU       kE2BT+111
K2SAMPZINT      EQU       kE2BT+112
K1PROPZINT      EQU       kE2BT+113
K2PROPZINT      EQU       kE2BT+114
KDNORMAL        EQU       kE2BT+115
KINVNORM        EQU       kE2BT+116
KDT             EQU       kE2BT+117
KCHI            EQU       kE2BT+118
KDF             EQU       kE2BT+119
KBINPDF         EQU       kE2BT+120
KBINCDF         EQU       kE2BT+121
KPOIPDF         EQU       kE2BT+122
KPOICDF         EQU       kE2BT+123
kRecn           EQU       kE2BT+127
KPLOTSTART      EQU       kE2BT+128
KZPLOTSTART     EQU       kE2BT+129   ; recursion n
kXFACT          EQU       kE2BT+130   ; PLOTSTART
kYFACT          EQU       kE2BT+131   ; ZPLOTSTART
KANOVA          EQU       kE2BT+132   ; XFACT
kMAXY           EQU       kE2BT+133   ; YFACT
kWEBON          EQU       kE2BT+134   ; MINY
kWEBOFF         EQU       kE2BT+135   ; MAXY
kTBLINPUT       EQU       kE2BT+136   ; WEB ON
KGEOPDF         EQU       kE2BT+137   ; WEB OFF
KGEOCDF         EQU       kE2BT+138   ; WEB OFF
KSHADENORM      EQU       kE2BT+139
KSHADET         EQU       kE2BT+140
KSHADECHI       EQU       kE2BT+141
KSHADEF         EQU       kE2BT+142
KLINREGTTEST    EQU       kE2BT+145
cxSOLVETVM      EQU     kSolveTVM               ;Solve TVM
kRANDNORM       EQU       kE2BT2+53
kFINn           EQU       kE2BT2+90
kFINi           EQU       kE2BT2+91
kFINpv          EQU       kE2BT2+92
kFINpmt         EQU       kE2BT2+93
kFINfv          EQU       kE2BT2+94
kFINpy          EQU       kE2BT2+95
kFINcy          EQU       kE2BT2+96
kFINFpmt        EQU       kE2BT2+97
kFINFi          EQU       kE2BT2+98
kFINFpv         EQU       kE2BT2+99
kFINFn          EQU       kE2BT2+100
kFINFfv         EQU       kE2BT2+101
kFINnpv         EQU       kE2BT2+102
kFINirr         EQU       kE2BT2+103
kFINbal         EQU       kE2BT2+104
kFINprn         EQU       kE2BT2+105
kFINint         EQU       kE2BT2+106
kFINtonom       EQU       kE2BT2+109
kFINtoeff       EQU       kE2BT2+110
kFINdbd         EQU       kE2BT2+111
KNORMALPDF      EQU       kE2BT2+140
KTPDF           EQU       kE2BT2+141
KCHIPDF         EQU       kE2BT2+142
KFPDF           EQU       kE2BT2+143
KRANDBIN        EQU       kE2BT2+145

REALOBJ         EQU       0
LISTOBJ         EQU       1
MATOBJ          EQU       2
EQUOBJ          EQU       3
STRNGOBJ        EQU       4
PROGOBJ         EQU       5
PROTPROGOBJ     EQU       6
PICTOBJ         EQU       7
GDBOBJ          EQU       8
UNKNOWNOBJ      EQU       9
UNKNOWNEQUOBJ   EQU       0AH
NEWEQUOBJ       EQU       0BH
CPLXOBJ         EQU       0CH
CLISTOBJ        EQU       0DH
SLISTOBJ        EQU       0DH   ;string list
UNDEFOBJ        EQU       0EH
WINDOWOBJ       EQU       0FH
ZSTOOBJ         EQU       10H
TBLRNGOBJ       EQU       11H
LCDOBJ          EQU       12H
BACKUPOBJ       EQU       13H
FRACOBJ         EQU       14H
FRACRSOBJ       EQU       14H           ;reduced   simple fraction.
FRACRMOBJ       EQU       15H           ;reduced   mixed  fraction.
FRACUSOBJ       EQU       16H           ;unreduced simple fraction.
FRACUMOBJ       EQU       17H           ;unreduced mixed fraction.
NAMEOBJ         EQU       18H           ;name string (will fit in fplen).
APPOBJ          EQU       19H           ;application, only used in menus/link
AppVarObj       Equ       1Ah           ;application variable
tmpConstObj     Equ       1Bh           ;temporary type of constant.
;                                       ;only used in mem delete / link


SRECURN 	equ  001h
SrecurU 	equ  002h
SrecurV 	equ  003h
SrecurW 	equ  004h
Sconvert	equ  005h
SFourSpaces	equ  006h
SsqDown 	equ  007h
Sintegral	equ  008h
Scross		equ  009h
SBoxIcon	equ  00Ah
SCrossIcon	equ  00Bh
SDotIcon	equ  00Ch
SsubT		equ  00Dh
ScubeR		equ  00Eh
LhexF		equ  00Fh
Sroot		equ  010h
Sinverse	equ  011h
Ssquare 	equ  012h
Sangle		equ  013h
Sdegree 	equ  014h
Sradian 	equ  015h
Stranspose	equ  016h
SLE		equ  017h
SNE		equ  018h
SGE		equ  019h
Sneg		equ  01Ah
Lneg          EQU    Sneg
Sexponent	equ  01Bh
Sstore		equ  01Ch
Sten		equ  01Dh
SupArrow	equ  01Eh
SdownArrow	equ  01Fh
Lspace		equ  020h
Sexclam 	equ  021h
Squote		equ  022h
Spound		equ  023h
Sdollar 	equ  024h
Spercent	equ  025h
Sampersand	equ  026h
Sapostrophe	equ  027h
SlParen 	equ  028h
SrParen 	equ  029h
Sasterisk	equ  02Ah
SplusSign	equ  02Bh
Scomma		equ  02Ch
Sdash		equ  02Dh
Speriod 	equ  02Eh
Sslash		equ  02Fh
L0		EQU	030h
L1		EQU	031h
L2		EQU	032h
L3		EQU	033h
L4		EQU	034h
L5		EQU	035h
L6		EQU	036h
L7		EQU	037h
L8		EQU	038h
L9		EQU	039h

S0		equ  030h
S1		equ  031h
S2		equ  032h
S3		equ  033h
S4		equ  034h
S5		equ  035h
S6		equ  036h
S7		equ  037h
S8		equ  038h
S9		equ  039h
Lcolon		equ  03Ah
Ssemicolon	equ  03Bh
SLT		equ  03Ch
SEQ		equ  03Dh
SGT		equ  03Eh
Squestion	equ  03Fh
SatSign 	equ  040h
LcapA		equ  041h
ScapB		equ  042h
ScapC		equ  043h
ScapD		equ  044h
ScapE		equ  045h
ScapF		equ  046h
ScapG		equ  047h
ScapH		equ  048h
ScapI		equ  049h
ScapJ		equ  04Ah
ScapK		equ  04Bh
ScapL		equ  04Ch
ScapM		equ  04Dh
ScapN		equ  04Eh
ScapO		equ  04Fh
ScapP		equ  050h
ScapQ		equ  051h
ScapR		equ  052h
ScapS		equ  053h
ScapT		equ  054h
ScapU		equ  055h
ScapV		equ  056h
ScapW		equ  057h
ScapX		equ  058h
ScapY		equ  059h
LcapZ		equ  05Ah
Stheta		equ  05Bh
Sbackslach	equ  05Ch
SrBrack 	equ  05Dh
Scaret		equ  05Eh
Sunderscore	equ  05Fh
Sbackquote	equ  060h
SmallA		equ  061h
SmallB		equ  062h
SmallC		equ  063h
SmallD		equ  064h
SmallE		equ  065h
SmallF		equ  066h
SmallG		equ  067h
SmallH		equ  068h
SmallI		equ  069h
SmallJ		equ  06Ah
SmallK		equ  06Bh
SmallL		equ  06Ch
SmallM		equ  06Dh
SmallN		equ  06Eh
SmallO		equ  06Fh
SmallP		equ  070h
SmallQ		equ  071h
SmallR		equ  072h
SmallS		equ  073h
SmallT		equ  074h
SmallU		equ  075h
SmallV		equ  076h
SmallW		equ  077h
SmallX		equ  078h
SmallY		equ  079h
SmallZ		equ  07Ah
SlBrace 	equ  07Bh
Sbar		equ  07Ch
SrBrace 	equ  07Dh
Stilde		equ  07Eh
SinvEQ		equ  07Fh
Ssub0		equ  080h
Ssub1		equ  081h
Ssub2		equ  082h
Ssub3		equ  083h
Ssub4		equ  084h
Ssub5		equ  085h
Ssub6		equ  086h
Ssub7		equ  087h
Ssub8		equ  088h
Ssub9		equ  089h
ScapAAcute	equ  08Ah
ScapAGrave	equ  08Bh
ScapACaret	equ  08Ch
ScapADier	equ  08Dh
SaAcute 	equ  08Eh
SaGrave 	equ  08Fh
SaCaret 	equ  090h
SaDier		equ  091h
ScapEAcute	equ  092h
ScapEGrave	equ  093h
ScapECaret	equ  094h
ScapEDier	equ  095h
SeAcute 	equ  096h
SeGrave 	equ  097h
SeCaret 	equ  098h
SeDier		equ  099h
ScapIAcute	equ  09Ah
ScapIGrave	equ  09Bh
ScapICaret	equ  09Ch
ScapIDier	equ  09Dh
LiAcute 	equ  09Eh
SiGrave 	equ  09Fh
SiCaret 	equ  0A0h
LiDier		equ  0A1h
ScapOAcute	equ  0A2h
ScapOGrave	equ  0A3h
ScapOCaret	equ  0A4h
ScapODier	equ  0A5h
SoAcute 	equ  0A6h
SoGrave 	equ  0A7h
SoCaret 	equ  0A8h
SoDier		equ  0A9h
ScapUAcute	equ  0AAh
ScapUGrave	equ  0ABh
ScapUCaret	equ  0ACh
ScapUDier	equ  0ADh
SuAcute 	equ  0AEh
SuGrave 	equ  0AFh
SuCaret 	equ  0B0h
SuDier		equ  0B1h
ScapCCed	equ  0B2h
ScCed		equ  0B3h
ScapNTilde	equ  0B4h
SnTilde 	equ  0B5h
Saccent 	equ  0B6h
Sgrave		equ  0B7h
Sdieresis	equ  0B8h
SquesDown	equ  0B9h
SexclamDown	equ  0BAh
Salpha		equ  0BBh
Sbeta		equ  0BCh
Sgamma		equ  0BDh
ScapDelta	equ  0BEh
Sdelta		equ  0BFh
Sepsilon	equ  0C0h
SlBrack 	equ  0C1h
Slambda 	equ  0C2h
Smu		equ  0C3h
Spi		equ  0C4h
Srho		equ  0C5h
ScapSigma	equ  0C6h
Ssigma		equ  0C7h
Stau		equ  0C8h
Sphi		equ  0C9h
ScapOmega	equ  0CAh
SxMean		equ  0CBh
SyMean		equ  0CCh
SsupX		equ  0CDh
Sellipsis	equ  0CEh
Sleft		equ  0CFh
Sblock		equ  0D0h
Sper		equ  0D1h
Shyphen 	equ  0D2h
Sarea		equ  0D3h
Stemp		equ  0D4h
Scube		equ  0D5h
Senter		equ  0D6h
Sunit		equ  0D7h

SToFrom1        equ  0D8h
SCopyRight      equ  0D9h

SbigL           equ  0DAh               ;L in L1..L6 (Lfont=same as CapL)
                                        ;but sfont style is different...
Slne		equ  0DBh
LlistL		equ  0DCh

Sfracslash	equ  0DDh
S2_R_PAREN	EQU  0DEh
SnarrowCapE	equ  0DFh
ScurO		equ  0E0h
ScurO2		equ  0E1h
ScurI		equ  0E2h
ScurI2		equ  0E3h
SListLock	equ  0E4h
Sscatter1	equ  0E5h
Sscatter2	equ  0E6h
Sxyline1	equ  0E7h
Sxyline2	equ  0E8h
Sboxplot1	equ  0E9h
Sboxplot2	equ  0EAh
Shist1		equ  0EBh
Shist2		equ  0ECh
SmodBox1	equ  0EDh
SmodBox2	equ  0EEh

spictogram	equ  0EFh
sstemleaf1	equ  0F0h
sstemleaf2	equ  0F1h
sbar1		equ  0F2h
sbar2		equ  0F3h

sCur7x7		equ  0F4h
Sspace3		equ  0F5h
Sspace4		equ  0F6h
Sspace5		equ  0F7h

sman		equ  0F8h

stree		equ  0F9h
sTallDollar	equ  0FAh
sface		equ  0FBh
scircle		equ  0FCh
sdiamond	equ  0FDh
sstar		equ  0FEh
SCurFull	equ  0FFh


Hook_DrawCursorSaveUnder  equ    34 
Hook_DrawCursor        equ       35 

tChs EQU 0B0h

ErrDomain     EQU 84h
ErrSyntax     EQU 88h
ErrDataType   EQU 89h
ErrUndefined EQU 8Dh
ErrNoSignChange      EQU 98h
ErrDivideByZero      EQU 9Ah

bootbtf  equ   8000h

; boot-code branch table offsets

; 0,3,6,9,12 used by reset, 15,18,21 used for boot id

_md5final	    equ    24+bootbtf
_sigmod 	    equ    27+bootbtf
_bignumcompare	    equ    30+bootbtf
_putbyteflash	    equ    33+bootbtf
_eraseflashhl	    equ    36+bootbtf
_findcert	    equ    39+bootbtf
_delcert            equ    42+bootbtf
_nextcert           equ    45+bootbtf
_findproginfo       equ    48+bootbtf
;                   equ    51+bootbtf
; 54,57 can't be used (maskable interrupt jump)
;		    equ    60+bootbtf
;		    equ    63+bootbtf
_mult8by8	    equ    66+bootbtf
_mult16by8	    equ    69+bootbtf
_divide16by8	    equ    72+bootbtf
_divide16by16	    equ    75+bootbtf
_calcidchange       equ    78+bootbtf
_LoadAIndPaged          equ    81+bootbtf
_FlashToRam            equ    84+bootbtf
_findcurcerts       equ    87+bootbtf
_getlength          equ    90+bootbtf
_findheader         equ    93+bootbtf
_initsect           equ    96+bootbtf
_checkprogramid     equ    99+bootbtf
_findgroupcert      equ    102+bootbtf
_findoffset         equ    105+bootbtf
_load_lfont         equ    108+bootbtf
_load_lfont2        equ    111+bootbtf
_downloadbasecode2  equ    114+bootbtf
_findappheader      equ    117+bootbtf
_findcertinc        equ    120+bootbtf
_recabyte           equ    123+bootbtf
_getcalcserial	    equ    126+bootbtf
_downloadcalcidchange equ  129+bootbtf
_eraseflash	    equ    132+bootbtf
_copyramtoflash     equ    135+bootbtf
_dispbootid	    equ    138+bootbtf
_md5init	    equ    141+bootbtf
_md5update	    equ    144+bootbtf
_setbasecodeflag    equ    147+bootbtf
_findprogramlicense equ    150+bootbtf
_clearbasecodeflag  equ    153+bootbtf
_checkbasecodeflag  equ    156+bootbtf
_setupapppubkey     equ    159+bootbtf
_sigmodr	    equ    162+bootbtf
_rabin		    equ    165+bootbtf
_compfreewareid     equ    168+bootbtf
_findappheadererased equ   171+bootbtf
_validationnum	    equ    174+bootbtf
_divide32by16	    equ    177+bootbtf
_findproginfoathead equ    180+bootbtf
_getbootver	    equ    183+bootbtf
_gethwver	    equ    186+bootbtf
_recabytestat	    equ    189+bootbtf
_bignumpowermod17   equ    192+bootbtf
_rethardver	    equ    195+bootbtf
_putbyteflashnc     equ    198+bootbtf
_copyramtoflashnc   equ	   201+bootbtf
_setupdatepubkey    equ    204+bootbtf


 list


